• →
  • ←
  • index
  • Pugl
  • » Overview

OverviewΒΆ

The Pugl API revolves around two main objects: the world and the view. An application creates a world to manage top-level state, then creates one or more views to display.

The core API (excluding backend-specific components) is declared in pugl.h:

#include <pugl/pugl.h>
  • Creating a World
    • Construction
    • Setting Application Data
  • Creating a View
    • Configuring the Frame
    • Embedding
    • Setting an Event Handler
    • Setting View Data
    • Setting a Backend
      • Using Cairo
      • Using OpenGL
      • Using Vulkan
        • Loading Vulkan
        • Linking with Vulkan
        • Creating a Surface
    • Showing the View
  • Handling Events
    • Using the Graphics Context
      • Drawing
      • Cairo Context
      • OpenGL Context
      • Vulkan Context
  • Driving the Event Loop
    • Redrawing
    • Event Dispatching
      • MacOS
      • Windows
      • X11
    • Recursive Event Loops
  • Using Clipboards
    • Drag and Drop
    • Copy and Paste
  • Shutting Down
Copyright 2020, David Robillard. Generated using Sphinx 4.2.0.
  • →
  • ←
  • index
  • Pugl
  • » Overview