LMMS
Loading...
Searching...
No Matches
OpenGL

Typedefs

typedef void(* PuglGlFunc) (void)

Functions

PUGL_API PuglGlFunc puglGetProcAddress (const char *name)
PUGL_API PuglStatus puglEnterContext (PuglView *view)
PUGL_API PuglStatus puglLeaveContext (PuglView *view)
PUGL_CONST_API const PuglBackendpuglGlBackend (void)

Detailed Description

OpenGL graphics support.

Typedef Documentation

◆ PuglGlFunc

typedef void(* PuglGlFunc) (void)

OpenGL extension function.

Function Documentation

◆ puglEnterContext()

PUGL_API PuglStatus puglEnterContext ( PuglView * view)

Enter the OpenGL context.

This can be used to enter the graphics context in unusual situations, for doing things like loading textures. Note that this must not be used for drawing, which may only be done while processing an expose event.

◆ puglGetProcAddress()

PUGL_API PuglGlFunc puglGetProcAddress ( const char * name)

Return the address of an OpenGL extension function.

◆ puglGlBackend()

PUGL_CONST_API const PuglBackend * puglGlBackend ( void )

OpenGL graphics backend.

Pass the returned value to puglSetBackend() to draw to a view with OpenGL.

◆ puglLeaveContext()

PUGL_API PuglStatus puglLeaveContext ( PuglView * view)

Leave the OpenGL context.

This must only be called after puglEnterContext().