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
|
|
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 |
m_Key
private const void* m_Key;
- The model this object was created for
m_Model
private CModel* m_Model;
CModelRData
public CModelRData( const void* key, CModel* model );
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