OpenGL utility class.
More...
#include <opengl.h>
static void CL_OpenGL::check_error |
( |
) | |
|
|
static |
Throw an exception if an OpenGL error was detected ( Using glGetError() )
Remember to call glGetError() to clear any previous errors
static int CL_OpenGL::get_glsl_version_major |
( |
) | |
|
|
inlinestatic |
Get the glsl version major number.
static int CL_OpenGL::get_glsl_version_minor |
( |
) | |
|
|
inlinestatic |
Get the glsl version minor number.
static int CL_OpenGL::get_opengl_version_major |
( |
) | |
|
|
inlinestatic |
Get the opengl version major number.
static int CL_OpenGL::get_opengl_version_minor |
( |
) | |
|
|
inlinestatic |
Get the opengl version minor number.
Get OpenGL extension specific function address.
Returns the number of bits in a texture format.
Sets the thread's OpenGL context to the one used by the graphic context.
Sets the thread's OpenGL context to the one used by the graphic context.
static bool CL_OpenGL::set_active |
( |
) | |
|
|
static |
Sets the thread's OpenGL context to the first valid allocated one.
If a valid OpenGL context is not found, then "no render context" is set.
- Returns
- true = Success. false = No OpenGL contexts could be found
Get a OpenGL format out of a pixel format.
The function returns false if pixelformat color depth is not convertible to OpenGL pixel format, otherwise the format and type are returned with values in format and type.
To opengl textureformat.
- Parameters
-
format | = Texture Format |
gl_internal_format | = GLint |
gl_pixel_format | = GLenum |
friend class CL_OpenGLGraphicContextProvider |
|
friend |
Function table for OpenGL 2.0.
The documentation for this class was generated from the following file: