Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::render::CGShaderManager Class Reference

Inheritance diagram for ONE::render::CGShaderManager:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void compileShaders ()
void disableShader ()
G3D::Array< string > getAllShaderNames ()
string getDefaultAmbientShader ()
string getDefaultDirectShader ()
CGShadergetShader (string shaderName)
void setShader (string shaderName)
 ~CGShaderManager ()

Static Public Member Functions

static void destroyInstance ()
 may be used to manually destroy the singleton instance
static CGShaderManagergetInstance ()
 accesses the singleton instance
static bool isActive ()
 checks if the singleton is active
static bool isDestroyed ()
 checks if the singleton is destroyed
static bool isVirgin ()
 checks if the singleton has not been initialized

Public Attributes

CGcontext cgContext
CGprofile cgFragmentProfile
CGprofile cgVertexProfile
bool compiled

Protected Member Functions

 Singleton ()

Static Protected Member Functions

static void destroyedError ()
static void initInstance ()

Constructor & Destructor Documentation

ONE::render::CGShaderManager::~CGShaderManager  ) 
 


Member Function Documentation

void ONE::render::CGShaderManager::compileShaders  ) 
 

static void ONE::util::Automatic< CGShaderManager >::destroyedError  )  [static, protected, inherited]
 

static void ONE::util::Automatic< CGShaderManager >::destroyInstance  )  [static, inherited]
 

may be used to manually destroy the singleton instance

If this function is not called, the instance is destroyed automatically during shutdown.

void ONE::render::CGShaderManager::disableShader  ) 
 

G3D::Array<string> ONE::render::CGShaderManager::getAllShaderNames  ) 
 

string ONE::render::CGShaderManager::getDefaultAmbientShader  )  [inline]
 

string ONE::render::CGShaderManager::getDefaultDirectShader  )  [inline]
 

static CGShaderManager * ONE::util::Singleton< CGShaderManager , Automatic >::getInstance  )  [static, inherited]
 

accesses the singleton instance

The exact operation executed by calling this function is determined by the singleton policies.

Returns:
a pointer to the singleton instance

CGShader* ONE::render::CGShaderManager::getShader string  shaderName  ) 
 

static void ONE::util::Automatic< CGShaderManager >::initInstance  )  [static, protected, inherited]
 

static bool ONE::util::Singleton< CGShaderManager , Automatic >::isActive  )  [static, inherited]
 

checks if the singleton is active

Returns:
if the singleton is instantiated

static bool ONE::util::Singleton< CGShaderManager , Automatic >::isDestroyed  )  [static, inherited]
 

checks if the singleton is destroyed

This function returns true if an instance existed and was destroyed. Note that in some cases it is possible to revive a singleton.

Returns:
if the singleton is destroyed

static bool ONE::util::Singleton< CGShaderManager , Automatic >::isVirgin  )  [static, inherited]
 

checks if the singleton has not been initialized

A singleton is not initialized if no instance exists and no instance has been destroyed.

Returns:
if the singleton is untouched

void ONE::render::CGShaderManager::setShader string  shaderName  ) 
 

ONE::util::Singleton< CGShaderManager , Automatic >::Singleton  )  [protected, inherited]
 


Member Data Documentation

CGcontext ONE::render::CGShaderManager::cgContext
 

CGprofile ONE::render::CGShaderManager::cgFragmentProfile
 

CGprofile ONE::render::CGShaderManager::cgVertexProfile
 

bool ONE::render::CGShaderManager::compiled
 


Generated on Wed Sep 7 19:03:26 2005 for ONEngine by  doxygen 1.4.3