OpenGL utility class.
More...
#include <opengl.h>
◆ check_error()
static void clan::OpenGL::check_error |
( |
| ) |
|
|
static |
◆ from_texture_handle()
Creates a texture object from an OpenGL texture handle.
The returned object takes ownership of the texture handle (it calls glDeleteTextures when destroyed)
◆ get_message_log()
Get the OpenGL message log.
This is required for this function to operate OpenGLContextDescription gldesc; gldesc.set_debug(true); OpenGLTarget::set_description(gldesc);
◆ get_proc_address()
Get OpenGL extension specific function address.
◆ get_texture_handle()
static GLuint clan::OpenGL::get_texture_handle |
( |
Texture & |
texture | ) |
|
|
static |
Returns the OpenGL texture handle.
◆ get_textureformat()
Returns the opengl texture format.
◆ set_active() [1/3]
Sets the thread's OpenGL context to the one used by the graphic context.
◆ set_active() [2/3]
static void clan::OpenGL::set_active |
( |
const OpenGLGraphicContextProvider *const |
gc_provider | ) |
|
|
static |
Sets the thread's OpenGL context to the one used by the graphic context.
◆ set_active() [3/3]
static bool clan::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
◆ to_cube_target()
static GLenum clan::OpenGL::to_cube_target |
( |
int |
index | ) |
|
|
static |
◆ to_enum() [1/15]
◆ to_enum() [2/15]
◆ to_enum() [3/15]
◆ to_enum() [4/15]
◆ to_enum() [5/15]
◆ to_enum() [6/15]
◆ to_enum() [7/15]
◆ to_enum() [8/15]
◆ to_enum() [9/15]
◆ to_enum() [10/15]
◆ to_enum() [11/15]
◆ to_enum() [12/15]
◆ to_enum() [13/15]
◆ to_enum() [14/15]
◆ to_enum() [15/15]
◆ GL1GraphicContextProvider
friend class GL1GraphicContextProvider |
|
friend |
◆ GL3GraphicContextProvider
friend class GL3GraphicContextProvider |
|
friend |
◆ PBuffer_GL1_Impl
friend class PBuffer_GL1_Impl |
|
friend |
◆ functions
Function table for OpenGL 2.0.
The documentation for this class was generated from the following file: