Pyrogenesis  trunk
Public Member Functions | Private Attributes | List of all members
CModelRData Class Reference

Class CModelRData: Render data that is maintained per CModel. More...

#include <ModelRenderer.h>

Inheritance diagram for CModelRData:
Inheritance graph
[legend]
Collaboration diagram for CModelRData:
Collaboration graph
[legend]

Public Member Functions

 CModelRData (const void *key)
 
const void * GetKey () const
 GetKey: Retrieve the key that can be used to identify the ModelRenderer that created this data. More...
 
- Public Member Functions inherited from CRenderData
 CRenderData ()
 
virtual ~CRenderData ()
 

Private Attributes

const void * m_Key
 The key for model renderer identification. More...
 

Additional Inherited Members

- Public Attributes inherited from CRenderData
int m_UpdateFlags
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CModelRData()

CModelRData::CModelRData ( const void *  key)
inline

Member Function Documentation

◆ GetKey()

const void* CModelRData::GetKey ( ) const
inline

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.

Member Data Documentation

◆ m_Key

const void* CModelRData::m_Key
private

The key for model renderer identification.


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