32 #include "opengl_defines.h"
34 #include "../Display/Render/texture.h"
35 #include "../Core/System/thread_local_storage.h"
44 class OpenGLGraphicContextProvider;
45 class GL1GraphicContextProvider;
46 class GL3GraphicContextProvider;
92 static void set_active(
const OpenGLGraphicContextProvider *
const gc_provider);
145 static void remove_active(
const OpenGLGraphicContextProvider *
const gc_provider);
GLenum severity
Definition: opengl.h:66
static GLenum to_enum(BufferAccess access)
static GLenum to_enum(TextureWrapMode mode)
GLenum pixel_format
Definition: opengl.h:58
static GLenum to_enum(LogicOp op)
TextureWrapMode
Texture coordinate wrapping modes.
Definition: texture.h:66
Texture object class.
Definition: texture.h:104
static GLenum to_enum(StencilOp op)
TextureFilter
Texture filters.
Definition: texture.h:74
#define cl_tls_variable
Definition: thread_local_storage.h:45
DrawBuffer
Drawing buffers.
Definition: graphic_context.h:119
static bool set_active()
Sets the thread's OpenGL context to the first valid allocated one.
CullMode
Polygon culling modes.
Definition: graphic_context.h:70
static GLenum to_enum(BufferUsage usage)
BlendEquation
Blending equations.
Definition: graphic_context.h:204
int GLint
Definition: opengl_defines.h:59
friend class GL3GraphicContextProvider
Definition: opengl.h:148
friend class GL1GraphicContextProvider
Definition: opengl.h:147
static GLenum to_enum(FillMode mode)
GLenum type
Definition: opengl.h:65
std::string message
Definition: opengl.h:68
static GLenum to_enum(BlendEquation eq)
TextureCompareMode
Texture compare modes.
Definition: texture.h:85
static void set_active(const OpenGLGraphicContextProvider *const gc_provider)
Sets the thread's OpenGL context to the one used by the graphic context.
StencilOp
Stencil operations.
Definition: graphic_context.h:106
GLFunctions.
Definition: opengl_wrap.h:52
unsigned int GLuint
Definition: opengl_defines.h:63
BufferUsage
Array Buffer usage enum.
Definition: buffer_usage.h:41
GLuint id
Definition: opengl.h:67
FillMode
Polygon filling modes.
Definition: graphic_context.h:78
static void check_error()
Throw an exception if an OpenGL error was detected ( Using glGetError() )
Interface to drawing graphics.
Definition: graphic_context.h:258
static GLenum to_enum(CullMode mode)
static cl_tls_variable GLFunctions * functions
Function table for OpenGL 2.0.
Definition: opengl.h:83
static GLenum to_enum(PrimitivesType value)
OpenGL utility class.
Definition: opengl.h:74
static GLenum to_enum(BlendFunc func)
static ProcAddress * get_proc_address(const std::string &function_name)
Get OpenGL extension specific function address.
static GLenum to_enum(TextureCompareMode mode)
static TextureFormat_GL get_textureformat(TextureFormat format)
Returns the opengl texture format.
GLint internal_format
Definition: opengl.h:57
TextureFormat
Texture format.
Definition: texture_format.h:41
BlendFunc
Blending functions.
Definition: graphic_context.h:155
static GLenum to_enum(DrawBuffer buf)
TextureFormat texture_format
Definition: opengl.h:55
GLenum pixel_datatype
Definition: opengl.h:59
unsigned int GLenum
Definition: opengl_defines.h:54
VertexAttributeDataType
Primitives array description.
Definition: primitives_array.h:57
static Texture from_texture_handle(GLuint type, GLuint handle)
Creates a texture object from an OpenGL texture handle.
static GLenum to_enum(VertexAttributeDataType value)
static GLuint get_texture_handle(Texture &texture)
Returns the OpenGL texture handle.
CompareFunction
Compare functions.
Definition: graphic_context.h:93
bool valid
True when this is a valid opengl format.
Definition: opengl.h:56
BufferAccess
Array Buffer access enum.
Definition: buffer_usage.h:55
void() ProcAddress()
Extension procedure address typedef for OpenGL.
Definition: opengl.h:51
static std::vector< MessageLog_GL > get_message_log(GLuint numMsgs)
Get the OpenGL message log.
friend class PBuffer_GL1_Impl
Definition: opengl.h:149
static GLenum to_cube_target(int index)
LogicOp
Logic Op.
Definition: graphic_context.h:134
GLenum source
Definition: opengl.h:64
PrimitivesType
Primitive types.
Definition: graphic_context.h:221
static GLenum to_enum(TextureFilter filter)
static void set_active(GraphicContext &gc)
Sets the thread's OpenGL context to the one used by the graphic context.
static GLenum to_enum(CompareFunction func)