|
LMMS
|
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 PuglBackend * | puglGlBackend (void) |
OpenGL graphics support.
| 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.
| PUGL_API PuglGlFunc puglGetProcAddress | ( | const char * | name | ) |
Return the address of an OpenGL extension function.
| PUGL_CONST_API const PuglBackend * puglGlBackend | ( | void | ) |
OpenGL graphics backend.
Pass the returned value to puglSetBackend() to draw to a view with OpenGL.
| PUGL_API PuglStatus puglLeaveContext | ( | PuglView * | view | ) |
Leave the OpenGL context.
This must only be called after puglEnterContext().