ClanLib
2.3.7
|
OpenGL utility class. More...
#include <opengl1.h>
Friends | |
class | CL_GL1GraphicContextProvider |
Attributes | |
static CL_GL1Functions * | functions |
Function table for OpenGL 2.0. More... | |
static CL_GL1ProcAddress * | get_proc_address (const CL_String8 &function_name) |
Get OpenGL extension specific function address. More... | |
static int | get_textureformat_bits (CL_TextureFormat format) |
Returns the number of bits in a texture format. More... | |
static bool | to_opengl_pixelformat (const CL_PixelBuffer &pbuffer, GLenum &format, GLenum &type) |
Get a OpenGL format out of a pixel format. More... | |
static bool | to_opengl_pixelformat (CL_TextureFormat texture_format, GLenum &format, GLenum &type) |
Get a OpenGL format out of a pixel format. More... | |
static void | to_opengl_textureformat (CL_TextureFormat format, GLint &gl_internal_format, GLenum &gl_pixel_format) |
To opengl textureformat. More... | |
static void | set_active (CL_GraphicContext &gc) |
Sets the thread's OpenGL context to the one used by the graphic context. More... | |
static void | set_active (const CL_GL1GraphicContextProvider *const gc_provider) |
Sets the thread's OpenGL context to the one used by the graphic context. More... | |
static bool | set_active () |
Sets the thread's OpenGL context to the first valid allocated one. More... | |
OpenGL utility class.
|
static |
Get OpenGL extension specific function address.
|
static |
Returns the number of bits in a texture format.
|
static |
Sets the thread's OpenGL context to the one used by the graphic context.
|
static |
Sets the thread's OpenGL context to the one used by the graphic context.
|
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.
|
static |
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.
|
static |
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.
|
static |
To opengl textureformat.
format | = Texture Format |
gl_internal_format | = GLint |
gl_pixel_format | = GLenum |
|
friend |
|
static |
Function table for OpenGL 2.0.