Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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:
CRenderData ShaderModel

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.

Definition at line 70 of file ModelRenderer.h.

Constructor & Destructor Documentation

CModelRData::CModelRData ( const void *  key)
inline

Definition at line 73 of file ModelRenderer.h.

Member Function Documentation

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.

Definition at line 81 of file ModelRenderer.h.

Member Data Documentation

const void* CModelRData::m_Key
private

The key for model renderer identification.

Definition at line 85 of file ModelRenderer.h.


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