![]() |
Public API Reference |
![]() |
Simple implementation for iShaderVariableContext. More...
#include <csgfx/shadervarcontext.h>
Public Member Functions | |
virtual void | AddVariable (csShaderVariable *variable) |
Add a variable to this context. | |
virtual void | Clear () |
Remove all variables from this context. | |
const csRefArray < csShaderVariable > & | GetShaderVariables () const |
Get Array of all ShaderVariables. | |
virtual csShaderVariable * | GetVariable (ShaderVarStringID name) const |
Get a named variable from this context. | |
virtual bool | IsEmpty () const |
Determine whether this SV context contains any variables at all. | |
virtual void | PushVariables (csShaderVariableStack &stacks) const |
Push the variables of this context onto the variable stacks supplied in the "stacks" argument. | |
virtual bool | RemoveVariable (csShaderVariable *variable) |
Remove the given variable from this context. | |
virtual bool | RemoveVariable (ShaderVarStringID name) |
Remove the variable with the given name from this context. | |
virtual void | ReplaceVariable (csShaderVariable *variable) |
Replace the current variable object of the same name as variable with the latter, add variable otherwise. |
Simple implementation for iShaderVariableContext.
Can be inherited from for use in SCF classes. For an example, see csShaderVariableContext.
Definition at line 43 of file shadervarcontext.h.
virtual void CS::Graphics::ShaderVariableContextImpl::AddVariable | ( | csShaderVariable * | variable | ) | [virtual] |
Add a variable to this context.
Implements iShaderVariableContext.
Reimplemented in CS::Graphics::OverlayShaderVariableContextImpl.
virtual void CS::Graphics::ShaderVariableContextImpl::Clear | ( | ) | [inline, virtual] |
Remove all variables from this context.
Implements iShaderVariableContext.
Reimplemented in CS::Graphics::OverlayShaderVariableContextImpl.
Definition at line 59 of file shadervarcontext.h.
const csRefArray<csShaderVariable>& CS::Graphics::ShaderVariableContextImpl::GetShaderVariables | ( | ) | const [inline, virtual] |
Get Array of all ShaderVariables.
Implements iShaderVariableContext.
Reimplemented in CS::Graphics::OverlayShaderVariableContextImpl.
Definition at line 52 of file shadervarcontext.h.
virtual csShaderVariable* CS::Graphics::ShaderVariableContextImpl::GetVariable | ( | ShaderVarStringID | name | ) | const [virtual] |
Get a named variable from this context.
Implements iShaderVariableContext.
Reimplemented in CS::Graphics::OverlayShaderVariableContextImpl.
virtual bool CS::Graphics::ShaderVariableContextImpl::IsEmpty | ( | ) | const [inline, virtual] |
Determine whether this SV context contains any variables at all.
Implements iShaderVariableContext.
Reimplemented in CS::Graphics::OverlayShaderVariableContextImpl.
Definition at line 57 of file shadervarcontext.h.
virtual void CS::Graphics::ShaderVariableContextImpl::PushVariables | ( | csShaderVariableStack & | stack | ) | const [virtual] |
Push the variables of this context onto the variable stacks supplied in the "stacks" argument.
Implements iShaderVariableContext.
Reimplemented in CS::Graphics::OverlayShaderVariableContextImpl.
virtual bool CS::Graphics::ShaderVariableContextImpl::RemoveVariable | ( | csShaderVariable * | variable | ) | [virtual] |
Remove the given variable from this context.
Implements iShaderVariableContext.
Reimplemented in CS::Graphics::OverlayShaderVariableContextImpl.
virtual bool CS::Graphics::ShaderVariableContextImpl::RemoveVariable | ( | ShaderVarStringID | name | ) | [virtual] |
Remove the variable with the given name from this context.
Implements iShaderVariableContext.
Reimplemented in CS::Graphics::OverlayShaderVariableContextImpl.
virtual void CS::Graphics::ShaderVariableContextImpl::ReplaceVariable | ( | csShaderVariable * | variable | ) | [virtual] |
Replace the current variable object of the same name as variable with the latter, add variable otherwise.
Implements iShaderVariableContext.
Reimplemented in CS::Graphics::OverlayShaderVariableContextImpl.