CrystalSpace

Public API Reference

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

iShaderVariableContext Struct Reference

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

#include <ivideo/shader/shader.h>

Inheritance diagram for iShaderVariableContext:

iBase csShaderVariableContext iMaterial iShader iShaderManager List of all members.

Public Member Functions

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.
csShaderVariableGetVariableAdd (csStringID name)
 Like GetVariable(), but it also adds it if doesn't exist already.
virtual const csRefArray<
csShaderVariable > & 
GetShaderVariables () const =0
 Get Array of all ShaderVariables.
virtual void PushVariables (csShaderVarStack &stacks) const =0
 Push the variables of this context onto the variable stacks supplied in the "stacks" argument.
virtual void PopVariables (csShaderVarStack &stacks) const =0
 Pop the variables of this context off the variable stacks supplied in the "stacks" argument.

Detailed Description

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

Definition at line 63 of file shader.h.


Member Function Documentation

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

Add a variable to this context.

Implemented in csShaderVariableContext.

Referenced by GetVariableAdd().

virtual const csRefArray<csShaderVariable>& iShaderVariableContext::GetShaderVariables  )  const [pure virtual]
 

Get Array of all ShaderVariables.

Implemented in csShaderVariableContext.

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

Get a named variable from this context.

Implemented in csShaderVariableContext.

Referenced by GetVariableAdd().

csShaderVariable* iShaderVariableContext::GetVariableAdd csStringID  name  )  [inline]
 

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

Definition at line 72 of file shader.h.

References AddVariable(), and GetVariable().

virtual void iShaderVariableContext::PopVariables csShaderVarStack stacks  )  const [pure virtual]
 

Pop the variables of this context off the variable stacks supplied in the "stacks" argument.

Implemented in csShaderVariableContext.

virtual void iShaderVariableContext::PushVariables csShaderVarStack stacks  )  const [pure virtual]
 

Push the variables of this context onto the variable stacks supplied in the "stacks" argument.

Implemented in csShaderVariableContext.


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