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. |
static ShaderManager FlowVis.Rendering.ShaderManager.GetInstance | ( | ) | [static] |
Get the singleton object of this class.
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.
filePath | Path to the file containing the cg code | |
t | Type of the shader object (vertex or fragment shader) |
void FlowVis.Rendering.ShaderManager.DisposeShader | ( | ShaderObject | o | ) |
Removes a shader from the shader list and disposes the shader object.
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.
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.