C#Code
C#Code
Public Member Functions | Protected Attributes | Private Member Functions
Libraries.Shaders.ShaderProperties Class Reference

List of all members.

Public Member Functions

 ShaderProperties ()
void Clear ()
void Update (int timePassed, Effect effect)
bool AddProperty (BaseShaderProperty property)
void RemoveProperty (StringType type)
BaseShaderProperty GetProperty (Libraries.StringType ID)
BaseShaderProperty GetProperty (string ID)
List< BaseShaderPropertyGetProperties ()
 ShaderProperties ()
void Clear ()
void Update (int timePassed, Effect effect)
bool AddProperty (BaseShaderProperty property)
void RemoveProperty (StringType type)
BaseShaderProperty GetProperty (Libraries.StringType ID)
BaseShaderProperty GetProperty (string ID)
List< BaseShaderPropertyGetProperties ()

Protected Attributes

List< BaseShaderPropertym_properties
 Stores all the properties.

Private Member Functions

 ~ShaderProperties ()
 ~ShaderProperties ()

Detailed Description

Container for shader properties.


Constructor & Destructor Documentation

Libraries.Shaders.ShaderProperties.ShaderProperties ( )

Default constructor.

Libraries.Shaders.ShaderProperties.~ShaderProperties ( ) [private]

Destructor.

Libraries.Shaders.ShaderProperties.ShaderProperties ( )

Default constructor.

Libraries.Shaders.ShaderProperties.~ShaderProperties ( ) [private]

Destructor.


Member Function Documentation

bool Libraries.Shaders.ShaderProperties.AddProperty ( BaseShaderProperty  property)

Add the given property if no property exists with the same ID.

timePassed - How long has passed since the previous update.

Return:
Value is true if the property could be added, false if not.
bool Libraries.Shaders.ShaderProperties.AddProperty ( BaseShaderProperty  property)

Add the given property if no property exists with the same ID.

timePassed - How long has passed since the previous update.

Return:
Value is true if the property could be added, false if not.
void Libraries.Shaders.ShaderProperties.Clear ( )

Remove all properties.

timePassed - How long has passed since the previous update.
effect - Effect to update.
void Libraries.Shaders.ShaderProperties.Clear ( )

Remove all properties.

timePassed - How long has passed since the previous update.
effect - Effect to update.
List<BaseShaderProperty> Libraries.Shaders.ShaderProperties.GetProperties ( )

Get the entire list of properties.

Return:
Value is the property if it exists, null if not.

List<BaseShaderProperty> Libraries.Shaders.ShaderProperties.GetProperties ( )

Get the entire list of properties.

Return:
Value is the property if it exists, null if not.

BaseShaderProperty Libraries.Shaders.ShaderProperties.GetProperty ( Libraries.StringType  ID)

Gets the property with the given ID.

ID - ID of the property to get.

Return:
Value is the property if it exists, null if not.
BaseShaderProperty Libraries.Shaders.ShaderProperties.GetProperty ( string  ID)

Gets the property with the given ID.

ID - ID of the property to get.

Return:
Value is the property if it exists, null if not.
BaseShaderProperty Libraries.Shaders.ShaderProperties.GetProperty ( Libraries.StringType  ID)

Gets the property with the given ID.

ID - ID of the property to get.

Return:
Value is the property if it exists, null if not.
BaseShaderProperty Libraries.Shaders.ShaderProperties.GetProperty ( string  ID)

Gets the property with the given ID.

ID - ID of the property to get.

Return:
Value is the property if it exists, null if not.
void Libraries.Shaders.ShaderProperties.RemoveProperty ( StringType  type)

Removes the property with the given type. Does nothing if no match is found.

type - Property type to remove.
void Libraries.Shaders.ShaderProperties.RemoveProperty ( StringType  type)

Removes the property with the given type. Does nothing if no match is found.

type - Property type to remove.
void Libraries.Shaders.ShaderProperties.Update ( int  timePassed,
Effect  effect 
)

Update all stored properties.

timePassed - How long has passed since the previous update.
effect - Effect to update.
void Libraries.Shaders.ShaderProperties.Update ( int  timePassed,
Effect  effect 
)

Update all stored properties.

timePassed - How long has passed since the previous update.
effect - Effect to update.

Member Data Documentation

Stores all the properties.


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