ParCompMark::OpenGLExtensionLoader Class Reference

#include <PCMOpenGLExtensionLoader.h>

List of all members.


Detailed Description

The OpenGLExtensionLoader class functions load and check OpenGL extensions.

The loader has immediate and delayed modes. Delayed mode is usefull for multidiplay applications and delayed GLX context creation.

Definition at line 56 of file PCMOpenGLExtensionLoader.h.


Class methods

static void load (const std::list< std::string > &extensions)
 Load the specified extensions (immediatelly or later depending on mLoadingMode).
static void loadDelayed ()
 Load queued extensions now.
static void _load (const std::list< std::string > &extensions)
 Load OpenGL extensions in the specified list.
static void _init ()
 Initialize the extensions.

Public Types

 IMMEDIATE
 The externsions are loaded immedatelly when the load() method is called.
 DELAYED
 The load() method only registers the extensions, the loadDelayed() method loads them effectively.
enum  LoadingMode { IMMEDIATE, DELAYED }
 Extension loading mode types. More...

Static Public Member Functions

Getters & setters
static const OpenGLExtensionLoader::LoadingModegetLoadingMode ()
 Getter of mLoadingMode.
static void setLoadingMode (const OpenGLExtensionLoader::LoadingMode &loadingmode)
 Setter of mLoadingMode.

Static Protected Attributes

Class variables
static LoadingMode mLoadingMode = DELAYED
 Extension loading mode.
static std::list< std::string > mExtensionsToLoad
 Stores extensions to be loaded when loadDelayed() is called.

Member Enumeration Documentation

Extension loading mode types.

Enumerator:
IMMEDIATE  The externsions are loaded immedatelly when the load() method is called.
DELAYED  The load() method only registers the extensions, the loadDelayed() method loads them effectively.

Definition at line 73 of file PCMOpenGLExtensionLoader.h.


Member Function Documentation

void ParCompMark::OpenGLExtensionLoader::_init (  )  [static, protected]

Initialize the extensions.

Definition at line 103 of file PCMOpenGLExtensionLoader.cpp.

References Except.

Referenced by load(), and loadDelayed().

void ParCompMark::OpenGLExtensionLoader::_load ( const std::list< std::string > &  extensions  )  [static, protected]

Load OpenGL extensions in the specified list.

One extensions is loaded only once. This function was separated from the rest of the rendering functions due to glew inclusion problems.

Parameters:
[in] extensions List of OpenGL extensions to load.

Definition at line 77 of file PCMOpenGLExtensionLoader.cpp.

References Except.

Referenced by load(), and loadDelayed().

const OpenGLExtensionLoader::LoadingMode & ParCompMark::OpenGLExtensionLoader::getLoadingMode (  )  [inline, static]

Getter of mLoadingMode.

Returns value of mLoadingMode.

Returns:
The value of mLoadingMode

Definition at line 212 of file PCMOpenGLExtensionLoader.h.

void ParCompMark::OpenGLExtensionLoader::load ( const std::list< std::string > &  extensions  )  [static]

Load the specified extensions (immediatelly or later depending on mLoadingMode).

Parameters:
[in] extensions List of OpenGL extensions to load.

Definition at line 53 of file PCMOpenGLExtensionLoader.cpp.

References _init(), _load(), DELAYED, IMMEDIATE, mExtensionsToLoad, and mLoadingMode.

Referenced by ParCompMark::RendererPlugin::_initializeSpecific().

Here is the call graph for this function:

void ParCompMark::OpenGLExtensionLoader::loadDelayed (  )  [static]

Load queued extensions now.

Definition at line 69 of file PCMOpenGLExtensionLoader.cpp.

References _init(), _load(), and mExtensionsToLoad.

Referenced by ParCompMark::Process::threadInitialize().

Here is the call graph for this function:

void ParCompMark::OpenGLExtensionLoader::setLoadingMode ( const OpenGLExtensionLoader::LoadingMode loadingmode  )  [inline, static]

Setter of mLoadingMode.

Sets value of mLoadingMode.

Parameters:
[in] loadingmode The value of mLoadingMode

Definition at line 219 of file PCMOpenGLExtensionLoader.h.


Member Data Documentation

std::list< std::string > ParCompMark::OpenGLExtensionLoader::mExtensionsToLoad [static, protected]

Stores extensions to be loaded when loadDelayed() is called.

Remarks:
This is own attribute of this class.

Definition at line 104 of file PCMOpenGLExtensionLoader.h.

Referenced by load(), and loadDelayed().

Extension loading mode.

Remarks:
This is own attribute of this class.

Definition at line 97 of file PCMOpenGLExtensionLoader.h.

Referenced by load().


The documentation for this class was generated from the following files: