11 #include <SimpleGL_gl/SimpleGL_gl_Export.h> 15 #include <glm/glm.hpp> 206 return static_cast<ClearBit> (bitmask);
214 class SIMPLEGL_GL_EXPORT
GL {
222 static void checkError();
246 static void clearColor(
float r,
float g,
float b,
float a);
253 static void clearColor(glm::vec4 color);
269 static void drawArrays(
Primitive mode,
int first,
int count);
Equivalent to GL_STENCIL_BUFFER_BIT.
Equivalent to GL_TRIANGLE_FAN.
Equivalent to GL_ONE_MINUS_SRC1_COLOR.
Equivalent to GL_CONSTANT_COLOR.
ClearBit
This enum wraps the clear buffer bits.
Primitive
This enum wraps Primitive types of OpenGL.
Equivalent to GL_DEPTH_TEST.
Equivalent to GL_FRONT_AND_BACK.
Equivalent to GL_COLOR_BUFFER_BIT.
Equivalent to GL_DST_ALPHA.
Equivalent to GL_SRC_ALPHA_SATURATE.
Equivalent to GL_ONE_MINUS_SRC_ALPHA.
Equivalent to GL_SRC_ALPHA.
Equivalent to GL_GREATER.
Equivalent to GL_DEPTH_BUFFER_BIT.
Equivalent to GL_SRC1_ALPHA.
Equivalent to GL_LINE_LOOP.
Generic namespace for the SimpleGL framework.
Equivalent to GL_CONSTANT_ALPHA.
DepthFunction
This enum wraps the depth functions.
Equivalent to GL_ONE_MINUS_CONSTANT_COLOR.
Equivalent to GL_ONE_MINUS_DST_COLOR.
CullFaceMode
This enum wraps the face culling modes.
Equivalent to GL_ONE_MINUS_SRC1_ALPHA.
Equivalent to GL_SRC_COLOR.
Equivalent to GL_ONE_MINUS_SRC_COLOR.
This static class wraps general OpenGL functions.
BlendFactor
This enum wraps the blend factos.
Equivalent to GL_ONE_MINUS_DST_ALPHA.
GLbitfield to_GLbitfield(E e)
Gets the GLbitfield value from an enum class.
Modifier operator|(Modifier left, Modifier right)
Overloaded OR operator for the modifier bit.
Equivalent to GL_TRIANGLE_STRIP.
Equivalent to GL_NOTEQUAL.
Equivalent to GL_TRIANGLES.
Equivalent to GL_LINE_STRIP.
Equivalent to GL_SRC1_COLOR.
Equivalent to GL_ONE_MINUS_CONSTANT_ALPHA.
Equivalent to GL_DST_COLOR.
Capability
This enum wraps OpenGL capabilities.