#include <opengl.h>
Friends | |
class | GL1GraphicContextProvider |
class | GL3GraphicContextProvider |
class | PBuffer_GL1_Impl |
Attributes | |
static cl_tls_variable GLFunctions * | functions |
Function table for OpenGL 2.0. More... | |
static ProcAddress * | get_proc_address (const std::string &function_name) |
Get OpenGL extension specific function address. More... | |
static TextureFormat_GL | get_textureformat (TextureFormat format) |
Returns the opengl texture format. More... | |
static void | set_active (GraphicContext &gc) |
Sets the thread's OpenGL context to the one used by the graphic context. More... | |
static void | set_active (const OpenGLGraphicContextProvider *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... | |
static void | check_error () |
Throw an exception if an OpenGL error was detected ( Using glGetError() ) More... | |
static std::vector< MessageLog_GL > | get_message_log (GLuint numMsgs) |
Get the OpenGL message log. More... | |
static GLuint | get_texture_handle (Texture &texture) |
Returns the OpenGL texture handle. More... | |
static Texture | from_texture_handle (GLuint type, GLuint handle) |
Creates a texture object from an OpenGL texture handle. More... | |
static GLenum | to_enum (DrawBuffer buf) |
static GLenum | to_enum (CompareFunction func) |
static GLenum | to_enum (StencilOp op) |
static GLenum | to_enum (CullMode mode) |
static GLenum | to_enum (FillMode mode) |
static GLenum | to_enum (BlendFunc func) |
static GLenum | to_enum (BlendEquation eq) |
static GLenum | to_enum (VertexAttributeDataType value) |
static GLenum | to_enum (PrimitivesType value) |
static GLenum | to_enum (LogicOp op) |
static GLenum | to_enum (TextureFilter filter) |
static GLenum | to_enum (TextureWrapMode mode) |
static GLenum | to_enum (TextureCompareMode mode) |
static GLenum | to_cube_target (int index) |
static GLenum | to_enum (BufferUsage usage) |
static GLenum | to_enum (BufferAccess access) |
OpenGL utility class.