CL_OpenGL Class Reference
[clanGL System]

OpenGL utility class. More...

#include <opengl.h>

List of all members.

Attributes

static CL_ProcAddressget_proc_address (const CL_String8 &function_name)
 Get OpenGL extension specific function address.
static bool from_opengl_pixelformat (CLenum format, CLenum type, CL_PixelFormat &pf)
 Get a pixel format out of an OpenGL format.
static bool to_opengl_pixelformat (const CL_PixelFormat &pf, CLenum &format, CLenum &type)
 Get a OpenGL format out of a pixel format.
static void to_opengl_textureformat (CL_TextureFormat format, CLint &gl_internal_format, CLenum &gl_pixel_format)
 To opengl textureformat.
static void set_active (CL_GraphicContext &gc)
 Sets the thread's OpenGL context to the one used by the graphic context.
static void set_active (const CL_OpenGLGraphicContextProvider *const gc_provider)
 Sets the thread's OpenGL context to the one used by the graphic context.
static bool set_active ()
 Sets the thread's OpenGL context to the first valid allocated one.
static CL_GLFunctionsfunctions
 Function table for OpenGL 2.0.


Detailed Description

OpenGL utility class.


Member Function Documentation

static bool CL_OpenGL::from_opengl_pixelformat CLenum  format,
CLenum  type,
CL_PixelFormat pf
[static]
 

Get a pixel format out of an OpenGL format.

The function returns false if it can't convert format, otherwise the the formatare returned with values in pf.

static CL_ProcAddress* CL_OpenGL::get_proc_address const CL_String8 function_name  )  [static]
 

Get OpenGL extension specific function address.

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

static void CL_OpenGL::set_active const CL_OpenGLGraphicContextProvider *const   gc_provider  )  [static]
 

Sets the thread's OpenGL context to the one used by the graphic context.

static void CL_OpenGL::set_active CL_GraphicContext gc  )  [static]
 

Sets the thread's OpenGL context to the one used by the graphic context.

static bool CL_OpenGL::to_opengl_pixelformat const CL_PixelFormat pf,
CLenum format,
CLenum 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 void CL_OpenGL::to_opengl_textureformat CL_TextureFormat  format,
CLint gl_internal_format,
CLenum gl_pixel_format
[static]
 

To opengl textureformat.

Parameters:
format = Texture Format
gl_internal_format = CLint
gl_pixel_format = CLenum


Member Data Documentation

CL_GLFunctions* CL_OpenGL::functions [static]
 

Function table for OpenGL 2.0.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:39 2009 for ClanLib by  doxygen 1.4.6