VRS::StateHandler< T > Class Template Reference
Class template for state handler.
More...
#include <vrs/sg/statehandler.h>
List of all members.
Detailed Description
template<class T>
class VRS::StateHandler< T >
Class template for state handler.
- Author:
- Victor Saar The StateHandler is used to collect state information for the class specified through the template argument. It tracks the active state while traversing the scene graph and collects occurring render states and shapes affected by them.
Constructor & Destructor Documentation
Member Function Documentation
template<class T>
| virtual void VRS::StateHandler< T >::collectShape |
( |
unsigned int |
index |
) |
[inline, virtual] |
- Parameters:
-
| root | Root node of optimized scene. |
| shapeIndices | Array with indices for relevant shapes. |
| shapes | Array of shapes found in the original scene. |
This method is called by the
StateSortingOperator on the first state handler in the chain. Each handler takes the given shape indices and computes the relevant indices for each state collected. This is done by creating an intersection between the given array and the indices for the particular render state. If the handler has a successor the intersection array is forwarded to it.
Implements VRS::AbstractStateHandler.
The documentation for this class was generated from the following file: