CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

iShaderManager Struct Reference

A manager for all shaders. More...

#include <shader.h>

Inheritance diagram for iShaderManager:

iBase List of all members.

Public Methods

virtual csPtr< iShader > CreateShader ()=0
 Create a empty shader. More...

virtual iShader * GetShader (const char *name)=0
 Get a shader by name. More...

virtual const csBasicVector & GetShaders ()=0
 Returns all shaders that have been created. More...

virtual csPtr< iShaderVariable > CreateVariable (const char *name)=0
 Create variable. More...

virtual bool AddVariable (iShaderVariable *variable)=0
 Add a variable to this context. More...

virtual iShaderVariable * GetVariable (int namehash)=0
 Get variable. More...

virtual csBasicVector GetAllVariableNames ()=0
 Get all variable stringnames added to this context (used when creatingthem). More...

virtual csPtr< iShaderProgram > CreateShaderProgram (const char *type)=0
 Create a shaderprogram. More...


Detailed Description

A manager for all shaders.

Will only be one at a given time

Definition at line 48 of file shader.h.


Member Function Documentation

virtual bool iShaderManager::AddVariable (  iShaderVariable *    variable )  [pure virtual]
 

Add a variable to this context.

virtual csPtr<iShader> iShaderManager::CreateShader (    )  [pure virtual]
 

Create a empty shader.

virtual csPtr<iShaderProgram> iShaderManager::CreateShaderProgram (  const char *    type )  [pure virtual]
 

Create a shaderprogram.

virtual csPtr<iShaderVariable> iShaderManager::CreateVariable (  const char *    name )  [pure virtual]
 

Create variable.

virtual csBasicVector iShaderManager::GetAllVariableNames (    )  [pure virtual]
 

Get all variable stringnames added to this context (used when creatingthem).

virtual iShader* iShaderManager::GetShader (  const char *    name )  [pure virtual]
 

Get a shader by name.

virtual const csBasicVector& iShaderManager::GetShaders (    )  [pure virtual]
 

Returns all shaders that have been created.

virtual iShaderVariable* iShaderManager::GetVariable (  int    namehash )  [pure virtual]
 

Get variable.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14