Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
BIAS::GlewInitWrapper Class Reference

To call glewInit() at the right time and only once is not easy in complex applications. More...

#include <Utils/GlewInitWrapper.hh>

+ Inheritance diagram for BIAS::GlewInitWrapper:
+ Collaboration diagram for BIAS::GlewInitWrapper:

Public Member Functions

int Init ()
 
bool IsInitalised ()
 

Static Public Member Functions

static GlewInitWrapperGetInstance ()
 

Protected Member Functions

 GlewInitWrapper ()
 

Static Protected Member Functions

static void DeleteInstance_ ()
 
static pthread_mutex_t * Mutex_ ()
 

Protected Attributes

bool IsInitialised_
 

Static Protected Attributes

static GlewInitWrapperInstance_
 

Friends

class BIAS::Singleton< GlewInitWrapper >
 

Detailed Description

To call glewInit() at the right time and only once is not easy in complex applications.

This wrapper helps to avoid calling it twice or more times. At the eraliest possible place right after the gl-context is ready, just call:

GlewInitWrapper::GetInstance()->Init(); No need to protect it agains multiple calls, this is checked internally.

@author MIP    

Definition at line 44 of file GlewInitWrapper.hh.

Constructor & Destructor Documentation

GlewInitWrapper::GlewInitWrapper ( )
protected

Definition at line 33 of file GlewInitWrapper.cpp.

References IsInitialised_.

Member Function Documentation

static void BIAS::Singleton< GlewInitWrapper >::DeleteInstance_ ( )
staticprotectedinherited
static GlewInitWrapper * BIAS::Singleton< GlewInitWrapper >::GetInstance ( )
staticinherited
int GlewInitWrapper::Init ( )
bool BIAS::GlewInitWrapper::IsInitalised ( )
inline

Definition at line 49 of file GlewInitWrapper.hh.

static pthread_mutex_t* BIAS::Singleton< GlewInitWrapper >::Mutex_ ( )
staticprotectedinherited

Friends And Related Function Documentation

friend class BIAS::Singleton< GlewInitWrapper >
friend

Definition at line 49 of file GlewInitWrapper.hh.

Member Data Documentation

GlewInitWrapper * BIAS::Singleton< GlewInitWrapper >::Instance_
staticprotectedinherited

static members

Definition at line 98 of file Singleton.hh.

bool BIAS::GlewInitWrapper::IsInitialised_
protected

Definition at line 57 of file GlewInitWrapper.hh.

Referenced by GlewInitWrapper(), and Init().


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