CrystalSpace

Public API Reference

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

iShaderVariableContext Struct Reference

This is a baseclass for all interfaces which provides shadervariables both dynamically and static. More...

#include <shader.h>

Inheritance diagram for iShaderVariableContext:

iBase iMaterial iShader iShaderManager List of all members.

Public Methods

virtual void AddVariable (csShaderVariable *variable)=0
 Add a variable to this context.

virtual csShaderVariableGetVariable (csStringID name) const=0
 Get a named variable from this context.

virtual csShaderVariableGetVariableRecursive (csStringID name) const=0
 Get a named variable from this context, and any context above/outer.

virtual unsigned int FillVariableList (csShaderVariableProxyList *list) const=0
 Fill a csShaderVariableList. Return number of variables filled.

csShaderVariableGetVariableAdd (csStringID name)
 Like GetVariable(), but it also adds it if doesn't exist already.

csShaderVariableGetVariableRecursiveAdd (csStringID name)
 Like GetVariable(), but it also adds it if doesn't exist already.


Detailed Description

This is a baseclass for all interfaces which provides shadervariables both dynamically and static.

Definition at line 52 of file shader.h.


Member Function Documentation

virtual void iShaderVariableContext::AddVariable csShaderVariable   variable [pure virtual]
 

Add a variable to this context.

Referenced by GetVariableAdd(), and GetVariableRecursiveAdd().

virtual unsigned int iShaderVariableContext::FillVariableList csShaderVariableProxyList   list const [pure virtual]
 

Fill a csShaderVariableList. Return number of variables filled.

virtual csShaderVariable* iShaderVariableContext::GetVariable csStringID    name const [pure virtual]
 

Get a named variable from this context.

Referenced by GetVariableAdd().

csShaderVariable* iShaderVariableContext::GetVariableAdd csStringID    name [inline]
 

Like GetVariable(), but it also adds it if doesn't exist already.

Definition at line 69 of file shader.h.

References AddVariable(), csStringID, and GetVariable().

virtual csShaderVariable* iShaderVariableContext::GetVariableRecursive csStringID    name const [pure virtual]
 

Get a named variable from this context, and any context above/outer.

Referenced by GetVariableRecursiveAdd().

csShaderVariable* iShaderVariableContext::GetVariableRecursiveAdd csStringID    name [inline]
 

Like GetVariable(), but it also adds it if doesn't exist already.

Definition at line 84 of file shader.h.

References AddVariable(), csStringID, and GetVariableRecursive().


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