![]() |
Public API Reference |
#include <shader.h>
Inheritance diagram for iShaderProgram:
Public Methods | |
virtual csPtr< iString > | GetProgramID ()=0 |
Get a programid for the current program. More... | |
virtual void | Activate (iShaderPass *current, csRenderMesh *mesh)=0 |
Sets this program to be the one used when rendering. More... | |
virtual void | Deactivate (iShaderPass *current)=0 |
Deactivate program so that it's not used in next rendering. More... | |
virtual void | SetupState (iShaderPass *current, csRenderMesh *mesh)=0 |
Setup states needed for proper operation of the shader. More... | |
virtual void | ResetState ()=0 |
Reset states to original. More... | |
virtual bool | IsValid ()=0 |
Check if valid. More... | |
virtual bool | Load (iDataBuffer *program)=0 |
Loads shaderprogram from buffer. More... | |
virtual bool | Load (iDocumentNode *node)=0 |
Loads from a document-node. More... | |
virtual bool | Prepare ()=0 |
Prepares the shaderprogram for usage. More... |
Definition at line 271 of file shader.h.
|
Sets this program to be the one used when rendering.
|
|
Deactivate program so that it's not used in next rendering.
|
|
Get a programid for the current program.
|
|
Check if valid.
|
|
Loads from a document-node.
|
|
Loads shaderprogram from buffer.
|
|
Prepares the shaderprogram for usage. Must be called before the shader is assigned to a material. |
|
Reset states to original.
|
|
Setup states needed for proper operation of the shader.
|