![]() |
Public API Reference |
#include <shader.h>
Inheritance diagram for iShader:
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< iShaderTechnique > | CreateTechnique ()=0 |
Create a new technique. More... | |
virtual int | GetTechniqueCount () const=0 |
Get number of techniques. More... | |
virtual iShaderTechnique * | GetTechnique (int technique)=0 |
Retrieve a technique. More... | |
virtual iShaderTechnique * | GetBestTechnique ()=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... |
Can/will be either render-specific or general
Definition at line 122 of file shader.h.
|
Create a new technique.
|
|
Retrieve the best technique in this shader.
|
|
Retrieve name of shader.
|
|
Retrieve a technique.
|
|
Get number of techniques.
|
|
Check if valid (normaly a shader is valid if there is at least one valid technique).
|
|
Loads from a document-node.
|
|
Loads a shader from buffer.
|
|
Prepares the shader for usage. Must be called before the shader is assigned to a material. |
|
Set this shader's name.
|