C#Code
C#Code
Public Member Functions | Protected Attributes | Properties | Static Private Attributes
Libraries.Shaders.ShaderEffectManager Class Reference

List of all members.

Public Member Functions

 ShaderEffectManager ()
Shader GetShader (string ID)
bool AddShader (Shader shader)
void RemoveShader (string shaderID)
void Update (int framesPassed)
 ShaderEffectManager ()
Shader GetShader (string ID)
bool AddShader (Shader shader)
void Update (int framesPassed)

Protected Attributes

List< Shaderm_shaders
 Store all the shaders in the manager.

Properties

static ShaderEffectManager Instance [get]

Static Private Attributes

static ShaderEffectManager m_instance
 Singleton instance of the class.

Detailed Description

Shader effects manager. Creates shaders and updates them with properties. Used keep track of the effects used and set generic properties, like camera and position. Can be used as a singleton.


Constructor & Destructor Documentation

Libraries.Shaders.ShaderEffectManager.ShaderEffectManager ( )

Default constructor.

Libraries.Shaders.ShaderEffectManager.ShaderEffectManager ( )

Default constructor.


Member Function Documentation

bool Libraries.Shaders.ShaderEffectManager.AddShader ( Shader  shader)

Add the given shader. If a shader with the same ID already exists, it is not added.

shader - Shader to add.
Return:
Value is true if the property could be added, false if not.
bool Libraries.Shaders.ShaderEffectManager.AddShader ( Shader  shader)

Add the given shader. If a shader with the same ID already exists, it is not added.

shader - Shader to add.
Return:
Value is true if the property could be added, false if not.
Shader Libraries.Shaders.ShaderEffectManager.GetShader ( string  ID)

Get the shader with the given ID, if it exists.

ID - ID of the shader to get.
Return:
Value is the shader if found, null if not.
Shader Libraries.Shaders.ShaderEffectManager.GetShader ( string  ID)

Get the shader with the given ID, if it exists.

ID - ID of the shader to get.
Return:
Value is the shader if found, null if not.
void Libraries.Shaders.ShaderEffectManager.RemoveShader ( string  shaderID)

Remove the shader with the given ID from the list of shaders.

shaderID - ID of the shader to remove.
Return:
Value is true if the property could be added, false if not.
void Libraries.Shaders.ShaderEffectManager.Update ( int  framesPassed)

Update the shaders in the manager.

framesPassed - How many frames have passed since the last update.
void Libraries.Shaders.ShaderEffectManager.Update ( int  framesPassed)

Update the shaders in the manager.

framesPassed - How many frames have passed since the last update.

Member Data Documentation

Singleton instance of the class.

Store all the shaders in the manager.


Property Documentation

static ShaderEffectManager Libraries::Shaders.ShaderEffectManager::Instance [static, get]

Getter. Retrive the instance of the singleton version of the class.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Properties