OGRE
13.6
ObjectOriented Graphics Rendering Engine

Definition of a functor for calculating the hashcode of a Pass. More...
#include <OgrePass.h>
Public Member Functions  
virtual  ~HashFunc () 
Need virtual destructor in case subclasses use it. More...  
virtual uint32  operator() (const Pass *p) const =0 
Definition of a functor for calculating the hashcode of a Pass.
The hashcode of a Pass is used to sort Passes for rendering, in order to reduce the number of render state changes. Each Pass represents a single unique set of states, but by ordering them, state changes can be minimised between passes. An implementation of this functor should order passes so that the elements that you want to keep constant are sorted next to each other.
Hash format is 32bit, divided as follows (high to low bits) bits purpose 4 Pass index (i.e. max 16 passes!). 28 Pass contents

inlinevirtual 
Need virtual destructor in case subclasses use it.