CrystalSpace

Public API Reference

CS::RenderManager::StandardSVSetup< RenderTree, LayerConfigType > Class Template Reference

Standard shader variable stack setup functor. More...

#include <csplugincommon/rendermanager/svsetup.h>

List of all members.

Public Member Functions

void operator() (typename RenderTree::MeshNode *node)
 Operator doing main work.

Detailed Description

template<typename RenderTree, typename LayerConfigType>
class CS::RenderManager::StandardSVSetup< RenderTree, LayerConfigType >

Standard shader variable stack setup functor.

Sets up mesh-specific SVs for the object to world and inverse transform, SVs from the layer, material, rendermesh and mesh wrapper. Assumes that the contextLocalId in each mesh is set.

Usage: with iteration over each mesh. Usually after SetupStandardSVs. Example:

 {
   StandardSVSetup<RenderTree, RenderLayers> svSetup (
     context.svArrays, layerConfig);
   ForEachMeshNode (context, svSetup);
 }

Definition at line 57 of file svsetup.h.


Member Function Documentation

template<typename RenderTree , typename LayerConfigType >
void CS::RenderManager::StandardSVSetup< RenderTree, LayerConfigType >::operator() ( typename RenderTree::MeshNode node  )  [inline]

Operator doing main work.

Definition at line 68 of file svsetup.h.


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

Generated for Crystal Space 2.0 by doxygen 1.6.1