ezEngine  Milestone 9
ezRenderData Class Reference

Base class for all render data. Render data must contain all information that is needed to render the corresponding object. More...

#include <RenderData.h>

Inheritance diagram for ezRenderData:

Classes

struct  Caching
 
struct  Category
 

Public Types

typedef ezDelegate< ezUInt64(const ezRenderData *, ezUInt32, const ezCamera &)> SortingKeyFunc
 This function generates a 64bit sorting key for the given render data. Data with lower sorting key is rendered first.
 

Public Member Functions

ezUInt64 GetCategorySortingKey (Category category, ezUInt32 uiRenderDataSortingKey, const ezCamera &camera) const
 Returns the sorting key for this render data by using the sorting key function for the given category.
 
- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () const
 
EZ_ALWAYS_INLINE bool IsInstanceOf (const ezRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
EZ_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Static Public Member Functions

static Category RegisterCategory (const char *szCategoryName, SortingKeyFunc sortingKeyFunc)
 
static Category FindCategory (const char *szCategoryName)
 
static const char * GetCategoryName (Category category)
 
- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 

Public Attributes

ezUInt32 m_uiBatchId
 BatchId is used to group render data in batches.
 
ezGameObjectHandle m_hOwner
 
ezTransform m_GlobalTransform
 
ezBoundingBoxSphere m_GlobalBounds
 

Detailed Description

Base class for all render data. Render data must contain all information that is needed to render the corresponding object.


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