FlowVis.Rendering.ShaderManager Class Reference

Handles shader objects for using cg shaders. More...

List of all members.

Public Member Functions

ShaderObject LoadFromFile (String filePath, ShaderObject.ShaderType t)
 Loads a shader program from a file and assigns it to a new shader object.
void DisposeShader (ShaderObject o)
 Removes a shader from the shader list and disposes the shader object.
void EnableShader (ShaderObject o)
 Enables the appropriate cg profile and binds the program of the shader object.
void EnableFixedFunction ()
 Disables vertex and fragment profiles.
void Dispose ()
 Free unmanaged ressources.

Static Public Member Functions

static ShaderManager GetInstance ()
 Get the singleton object of this class.


Detailed Description

Handles shader objects for using cg shaders.


Member Function Documentation

static ShaderManager FlowVis.Rendering.ShaderManager.GetInstance (  )  [static]

Get the singleton object of this class.

Returns:
The singleton shadermanager object

ShaderObject FlowVis.Rendering.ShaderManager.LoadFromFile ( String  filePath,
ShaderObject.ShaderType  t 
)

Loads a shader program from a file and assigns it to a new shader object.

Parameters:
filePath Path to the file containing the cg code
t Type of the shader object (vertex or fragment shader)
Returns:
Newly created shader object

void FlowVis.Rendering.ShaderManager.DisposeShader ( ShaderObject  o  ) 

Removes a shader from the shader list and disposes the shader object.

Parameters:
o Shader object which should be removed

void FlowVis.Rendering.ShaderManager.EnableShader ( ShaderObject  o  ) 

Enables the appropriate cg profile and binds the program of the shader object.

Parameters:
o Shader object whose cg shader program should be enabled

void FlowVis.Rendering.ShaderManager.EnableFixedFunction (  ) 

Disables vertex and fragment profiles.

void FlowVis.Rendering.ShaderManager.Dispose (  ) 

Free unmanaged ressources.


The documentation for this class was generated from the following file:
Generated on Mon Jan 21 16:09:36 2008 for FlowVis by  doxygen 1.5.1-p1