OpenGL context wrapper
Only default values
No destructors
| Type | Name | Description |
|---|---|---|
const int& |
gl_version_major |
OpenGL major version (read-only) |
const int& |
gl_version_minor |
OpenGL minor version (read-only) |
No public static members
| Type | Name | Description |
|---|---|---|
void |
BindContext(DecisionSolver::Window*) |
Make window context current |
void |
SwapBuffers() |
Swap back buffer by calling glfwSwapBuffers(GLFWwindow*) |
void |
LoadGL(int, int) |
Load OpenGL with Glad and make sure OpenGL version is not less than version specified in the arguments |
| Type | Name | Description |
|---|---|---|
GLFWwindow* |
GetCurrentContext() |
Get current context window |