CrystalSpace

Public API Reference

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

iShader Struct Reference

Specific shader. More...

#include <shader.h>

Inheritance diagram for iShader:

iShaderBranch 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 () const=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 IsValid () const=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. More...


Detailed Description

Specific shader.

Can/will be either render-specific or general

Definition at line 122 of file shader.h.


Member Function Documentation

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

Create a new technique.

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   const [pure virtual]
 

Get number of techniques.

virtual bool iShader::IsValid   const [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