Functions
Stub

Detailed Description

Stub graphics backend.

The stub backend functions do nothing and always return success. These do not make for a usable backend on their own since the platform implementation would fail to create a window, but are useful for other backends to reuse since not all need non-trivial implementations of every backend function.

Functions

const PuglBackendpuglStubBackend (void)
 
static PuglStatus puglStubConfigure (PuglView *view)
 
static PuglStatus puglStubCreate (PuglView *view)
 
static PuglStatus puglStubDestroy (PuglView *view)
 
static PuglStatus puglStubEnter (PuglView *view, const PuglEventExpose *expose)
 
static PuglStatus puglStubLeave (PuglView *view, const PuglEventExpose *expose)
 
static PuglStatus puglStubResize (PuglView *view, int width, int height)
 
static void * puglStubGetContext (PuglView *view)
 

Function Documentation

◆ puglStubBackend()

const PuglBackend* puglStubBackend ( void  )

Stub graphics backend.

This backend just creates a simple native window without setting up any portable graphics API.

◆ puglStubConfigure()

static PuglStatus puglStubConfigure ( PuglView view)
inlinestatic

References PUGL_SUCCESS.

◆ puglStubCreate()

static PuglStatus puglStubCreate ( PuglView view)
inlinestatic

References PUGL_SUCCESS.

◆ puglStubDestroy()

static PuglStatus puglStubDestroy ( PuglView view)
inlinestatic

References PUGL_SUCCESS.

◆ puglStubEnter()

static PuglStatus puglStubEnter ( PuglView view,
const PuglEventExpose expose 
)
inlinestatic

References PUGL_SUCCESS.

◆ puglStubLeave()

static PuglStatus puglStubLeave ( PuglView view,
const PuglEventExpose expose 
)
inlinestatic

References PUGL_SUCCESS.

◆ puglStubResize()

static PuglStatus puglStubResize ( PuglView view,
int  width,
int  height 
)
inlinestatic

References PUGL_SUCCESS.

◆ puglStubGetContext()

static void* puglStubGetContext ( PuglView view)
inlinestatic