CrystalSpace

Public API Reference

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

iShader Struct Reference

Specific shader. More...

#include <shader.h>

Inheritance diagram for iShader:

iBase List of all members.

Public Methods

virtual void SetName (const char *name)=0
 Set this shader's name. More...

virtual const char * GetName ()=0
 Retrieve name of shader. More...

virtual csPtr< iShaderTechniqueCreateTechnique ()=0
 Create a new technique. More...

virtual int GetTechniqueCount ()=0
 Get number of techniques. More...

virtual iShaderTechniqueGetTechnique (int technique)=0
 Retrieve a technique. More...

virtual iShaderTechniqueGetBestTechnique ()=0
 Retrieve the best technique in this shader. 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 in this context (used when creatingthem). More...

virtual bool IsValid ()=0
 Check if valid (normaly a shader is valid if there is at least one valid technique). More...

virtual bool Load (iDataBuffer *program)=0
 Loads a shader from buffer. More...

virtual bool Load (iDocumentNode *node)=0
 Loads from a document-node. More...

virtual bool Prepare ()=0
 Prepares the shader for usage. Must be called before the shader is assigned to a material. More...


Detailed Description

Specific shader.

Can/will be either render-specific or general

Definition at line 81 of file shader.h.


Member Function Documentation

virtual bool iShader::AddVariable iShaderVariable *    variable [pure virtual]
 

Add a variable to this context.

virtual csPtr<iShaderTechnique> iShader::CreateTechnique   [pure virtual]
 

Create a new technique.

virtual csBasicVector iShader::GetAllVariableNames   [pure virtual]
 

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

virtual iShaderTechnique* iShader::GetBestTechnique   [pure virtual]
 

Retrieve the best technique in this shader.

virtual const char* iShader::GetName   [pure virtual]
 

Retrieve name of shader.

virtual iShaderTechnique* iShader::GetTechnique int    technique [pure virtual]
 

Retrieve a technique.

virtual int iShader::GetTechniqueCount   [pure virtual]
 

Get number of techniques.

virtual iShaderVariable* iShader::GetVariable int    namehash [pure virtual]
 

Get variable.

virtual bool iShader::IsValid   [pure virtual]
 

Check if valid (normaly a shader is valid if there is at least one valid technique).

virtual bool iShader::Load iDocumentNode   node [pure virtual]
 

Loads from a document-node.

virtual bool iShader::Load iDataBuffer   program [pure virtual]
 

Loads a shader from buffer.

virtual bool iShader::Prepare   [pure virtual]
 

Prepares the shader for usage. Must be called before the shader is assigned to a material.

virtual void iShader::SetName const char *    name [pure virtual]
 

Set this shader's name.


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