![]() |
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 ()=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 | AddVariable (iShaderVariable *variable)=0 |
| Add a variable to this context. More... | |
| virtual iShaderVariable * | GetVariable (int namehash)=0 |
| Get variable. More... | |
| virtual csBasicVector | GetAllVariableNames ()=0 |
| Get all variable stringnames in this context (used when creatingthem). More... | |
| virtual bool | IsValid ()=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. Must be called before the shader is assigned to a material. More... | |
Can/will be either render-specific or general
Definition at line 81 of file shader.h.
|
|
Add a variable to this context.
|
|
|
Create a new technique.
|
|
|
Get all variable stringnames in this context (used when creatingthem).
|
|
|
Retrieve the best technique in this shader.
|
|
|
Retrieve name of shader.
|
|
|
Retrieve a technique.
|
|
|
Get number of techniques.
|
|
|
Get variable.
|
|
|
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.
|