CrystalSpace

Public API Reference

csShaderVariableFrameHolder Class Reference

Helper class to obtain a shader variable that was guaranteedly not used in a frame yet. More...

#include <csgfx/shadervarframeholder.h>

List of all members.

Public Member Functions

csRef< csShaderVariableGetFrameUniqueSV (uint framenr, CS::ShaderVarStringID name)
 Allocate a shader variable that was not used this frame.

Detailed Description

Helper class to obtain a shader variable that was guaranteedly not used in a frame yet.

See also:
csFrameDataHolder

Definition at line 38 of file shadervarframeholder.h.


Member Function Documentation

csRef<csShaderVariable> csShaderVariableFrameHolder::GetFrameUniqueSV ( uint  framenr,
CS::ShaderVarStringID  name 
)

Allocate a shader variable that was not used this frame.

Parameters:
framenr Number of the current frame; used to track used and unused variable.
name Name of the variable
Remarks:
It's adviseable to really only use the returned variable for a single frame.

The documentation for this class was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1