This static class wraps general OpenGL functions.
More...
#include <gl_general.hpp>
This static class wraps general OpenGL functions.
Definition at line 214 of file gl_general.hpp.
Specify pixel arithmetic.
- Parameters
-
source | Specifies how the red, green, blue, and alpha source blending factors are computed. |
destination | Specifies how the red, green, blue, and alpha destination blending factors are computed. |
Definition at line 79 of file gl_general.cpp.
void sgl::GL::checkError |
( |
| ) |
|
|
static |
Checks if an OpenGL error occured.
Definition at line 25 of file gl_general.cpp.
Clears the specified buffers.
- Parameters
-
mask | The bitfield containing the clear buffer bits. |
Definition at line 71 of file gl_general.cpp.
void sgl::GL::clearColor |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
static |
Sets the clear color.
- Parameters
-
r | The red component. |
g | The green component. |
b | The blue component. |
a | The alpha component. |
Definition at line 61 of file gl_general.cpp.
void sgl::GL::clearColor |
( |
glm::vec4 |
color | ) |
|
|
static |
Specify whether front- or back-facing facets can be culled.
- Parameters
-
mode | Specifies whether front- or back-facing facets are candidates for culling. |
Definition at line 83 of file gl_general.cpp.
Specify the value used for depth buffer comparisons.
- Parameters
-
func | Specifies the depth comparison function. |
Definition at line 87 of file gl_general.cpp.
Disable server-side GL capabilities.
- Parameters
-
cap | The capability to disable. |
Definition at line 57 of file gl_general.cpp.
void sgl::GL::drawArrays |
( |
Primitive |
mode, |
|
|
int |
first, |
|
|
int |
count |
|
) |
| |
|
static |
Renders vertex data with the current bound VBO.
- Parameters
-
mode | The Primitive mode to draw. |
first | The index of the array. |
count | The number of vertices to draw. |
Definition at line 75 of file gl_general.cpp.
Enable server-side GL capabilities.
- Parameters
-
cap | The capability to enable. |
Definition at line 53 of file gl_general.cpp.
The documentation for this class was generated from the following files:
- /home/heiko/Projekte/Studium/SimpleGL/Backends/OpenGL/include/SimpleGL_gl/gl_general.hpp
- /home/heiko/Projekte/Studium/SimpleGL/Backends/OpenGL/src/gl_general.cpp