Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

renderer
Class CModelRData

CRenderData
   |
   +--CModelRData

   in ModelRenderer.h
Direct Known Subclasses:
BMRModelData, SModel

class CModelRData
extends CRenderData

Class CModelRData: Render data that is maintained per CModel. ModelRenderer implementations may derive from this class to store per-CModel data. The main purpose of this class over CRenderData is to track which ModelRenderer the render data belongs to (via the key that is passed to the constructor). When a model changes the renderer it uses (e.g. via run-time modification of the renderpath configuration), the old ModelRenderer's render data is supposed to be replaced by the new data.


Field Summary
private const void* m_Key
          The model this object was created for
private CModel* m_Model
          
   
Fields inherited from class CRenderData
m_UpdateFlags
 
Constructor Summary
CModelRData( const void* key, CModel* model )
          
 
Method Summary
 const void* GetKey() const
          GetKey: Retrieve the key that can be used to identify the ModelRenderer that created this data.
 CModel* GetModel() const
          The key for model renderer identification
 

Field Detail

m_Key

private const void* m_Key;
The model this object was created for

m_Model

private CModel* m_Model;


Constructor Detail

CModelRData

public CModelRData( const void* key, CModel* model );


Method Detail

GetKey

public const void* GetKey() const;
GetKey: Retrieve the key that can be used to identify the ModelRenderer that created this data.
Returns:
The opaque key that was passed to the constructor.

GetModel

public CModel* GetModel() const;
The key for model renderer identification

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD