![]() |
Public API Reference |
#include <shader.h>
Inheritance diagram for iShaderPass:

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 iShaderProgram * | GetVertexProgram ()=0 |
| Get vertex-program. More... | |
| virtual void | SetVertexProgram (iShaderProgram *program)=0 |
| Set vertex-program. More... | |
| virtual iShaderProgram * | GetFragmentProgram ()=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... | |
Definition at line 213 of file shader.h.
|
|
Activate the whole pass for the indicated mesh (which might be 0).
|
|
||||||||||||
|
Add a stream mapping.
|
|
||||||||||||
|
Add a texture mapping.
|
|
|
Deactivate the whole pass.
|
|
|
Get fragment-program.
|
|
|
Get mixmode override.
|
|
|
Get stream mapping for a certain attribute.
|
|
|
Get texture mapping for a certain unit.
|
|
|
Get vertex-program.
|
|
|
Check if valid.
|
|
|
Loads from a document-node.
|
|
|
Loads pass from buffer.
|
|
|
Prepares the pass for usage.
|
|
|
Reset states to original.
|
|
|
Set fragment-program.
|
|
|
Setup states needed for proper operation of the shader.
|
|
|
Set vertex-program.
|