CrystalSpace

Public API Reference

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

iShaderPass Struct Reference

Description of a single pass in a shader. More...

#include <shader.h>

Inheritance diagram for iShaderPass:

iShaderBranch iBase List of all members.

Public Methods

virtual void AddStreamMapping (csStringID name, csVertexAttrib attribute)=0
 Add a stream mapping. More...

virtual csStringID GetStreamMapping (csVertexAttrib attribute) const=0
 Get stream mapping for a certain attribute. More...

virtual void AddTextureMapping (csStringID name, int unit)=0
 Add a texture mapping. More...

virtual csStringID GetTextureMapping (int unit) const=0
 Get texture mapping for a certain unit. More...

virtual uint GetMixmodeOverride () const=0
 Get mixmode override. More...

virtual iShaderProgramGetVertexProgram ()=0
 Get vertex-program. More...

virtual void SetVertexProgram (iShaderProgram *program)=0
 Set vertex-program. More...

virtual iShaderProgramGetFragmentProgram ()=0
 Get fragment-program. More...

virtual void SetFragmentProgram (iShaderProgram *program)=0
 Set fragment-program. More...

virtual bool IsValid () const=0
 Check if valid. More...

virtual void Activate (csRenderMesh *mesh)=0
 Activate the whole pass for the indicated mesh (which might be 0). More...

virtual void Deactivate ()=0
 Deactivate the whole pass. More...

virtual void SetupState (csRenderMesh *mesh)=0
 Setup states needed for proper operation of the shader. More...

virtual void ResetState ()=0
 Reset states to original. More...

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

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

virtual bool Prepare ()=0
 Prepares the pass for usage. More...


Detailed Description

Description of a single pass in a shader.

Definition at line 213 of file shader.h.


Member Function Documentation

virtual void iShaderPass::Activate csRenderMesh   mesh [pure virtual]
 

Activate the whole pass for the indicated mesh (which might be 0).

virtual void iShaderPass::AddStreamMapping csStringID    name,
csVertexAttrib    attribute
[pure virtual]
 

Add a stream mapping.

virtual void iShaderPass::AddTextureMapping csStringID    name,
int    unit
[pure virtual]
 

Add a texture mapping.

virtual void iShaderPass::Deactivate   [pure virtual]
 

Deactivate the whole pass.

virtual iShaderProgram* iShaderPass::GetFragmentProgram   [pure virtual]
 

Get fragment-program.

virtual uint iShaderPass::GetMixmodeOverride   const [pure virtual]
 

Get mixmode override.

virtual csStringID iShaderPass::GetStreamMapping csVertexAttrib    attribute const [pure virtual]
 

Get stream mapping for a certain attribute.

virtual csStringID iShaderPass::GetTextureMapping int    unit const [pure virtual]
 

Get texture mapping for a certain unit.

virtual iShaderProgram* iShaderPass::GetVertexProgram   [pure virtual]
 

Get vertex-program.

virtual bool iShaderPass::IsValid   const [pure virtual]
 

Check if valid.

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

Loads from a document-node.

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

Loads pass from buffer.

virtual bool iShaderPass::Prepare   [pure virtual]
 

Prepares the pass for usage.

virtual void iShaderPass::ResetState   [pure virtual]
 

Reset states to original.

virtual void iShaderPass::SetFragmentProgram iShaderProgram   program [pure virtual]
 

Set fragment-program.

virtual void iShaderPass::SetupState csRenderMesh   mesh [pure virtual]
 

Setup states needed for proper operation of the shader.

virtual void iShaderPass::SetVertexProgram iShaderProgram   program [pure virtual]
 

Set vertex-program.


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