![]() |
Public API Reference |
![]() |
Helper class to deal with shader variables setup for lighting. More...
#include <csplugincommon/rendermanager/lightsetup.h>
Classes | |
struct | PersistentData |
Data used by the helper that needs to persist over multiple frames. More... | |
Public Member Functions | |
csShaderVariable * | CreateTempSV (CS::ShaderVarStringID name=CS::InvalidShaderVarStringID) |
Create a shader variable which is only valid for this frame. | |
csShaderVariable * | CreateVarOnStack (CS::ShaderVarStringID name, csShaderVariableStack &stack) |
Create a temporary shader variable (using CreateTempSV) and put it onto stack. | |
LightingVariablesHelper (PersistentData &persist) | |
Construct. | |
bool | MergeAsArrayItem (csShaderVariableStack &dst, csShaderVariable *sv, size_t index) |
Merge a shader variable into a stack as an item of a shader variable. | |
void | MergeAsArrayItems (csShaderVariableStack &dst, const csRefArray< csShaderVariable > &allVars, size_t index) |
Merge an array of shader variables into a stack as items of a shader variables. |
Helper class to deal with shader variables setup for lighting.
Definition at line 250 of file lightsetup.h.
CS::RenderManager::LightingVariablesHelper::LightingVariablesHelper | ( | PersistentData & | persist | ) | [inline] |
Construct.
Definition at line 279 of file lightsetup.h.
csShaderVariable* CS::RenderManager::LightingVariablesHelper::CreateTempSV | ( | CS::ShaderVarStringID | name = CS::InvalidShaderVarStringID | ) |
Create a shader variable which is only valid for this frame.
csShaderVariable* CS::RenderManager::LightingVariablesHelper::CreateVarOnStack | ( | CS::ShaderVarStringID | name, |
csShaderVariableStack & | stack | ||
) |
Create a temporary shader variable (using CreateTempSV) and put it onto stack.
bool CS::RenderManager::LightingVariablesHelper::MergeAsArrayItem | ( | csShaderVariableStack & | dst, |
csShaderVariable * | sv, | ||
size_t | index | ||
) |
Merge a shader variable into a stack as an item of a shader variable.
The variable in the destination stack with the name of sv is an array variable or does not exist gets the array item with the index index set to sv.
void CS::RenderManager::LightingVariablesHelper::MergeAsArrayItems | ( | csShaderVariableStack & | dst, |
const csRefArray< csShaderVariable > & | allVars, | ||
size_t | index | ||
) |
Merge an array of shader variables into a stack as items of a shader variables.