GLContext
The GLContext class is an OpenGL-specific implementation of the Context class. It initializes the rendering context using an externally provided OpenGL context. The class provides access to OpenGL context-related resources, including the display, visual, configuration, surface, and the context.
#include <platform/TellusimContext.h>
Inheritance
- Inherits from Context
Constructors
explicit GLContext(uint32_t index = Maxu32)
Methods
Create context.
bool create(void *context)
Current context.
void *getGLDisplay() const
void *getGLVisual() const
void *getGLConfig() const
void *getGLSurface() const
void *getGLContext() const
Context info.
static String getExtensions()
Check context info.
static bool checkExtension(const char *name)
OpenGL functions.
static void *getProcAddress(const char *name)
Check OpenGL errors.
static bool error(uint32_t result)
static bool check()