ezEngine  Milestone 7
ezMeshComponent Class Reference
Inheritance diagram for ezMeshComponent:

Public Member Functions

void SetMesh (const ezMeshResourceHandle &hMesh)
 
EZ_FORCE_INLINE const
ezMeshResourceHandle
GetMesh () const
 
EZ_FORCE_INLINE void SetMaterial (ezUInt32 uiIndex, const ezMaterialResourceHandle &hMaterial)
 
EZ_FORCE_INLINE
ezMaterialResourceHandle 
GetMaterial (ezUInt32 uiIndex) const
 
EZ_FORCE_INLINE void SetRenderPass (ezRenderPassType renderpass)
 
virtual void OnAfterAttachedToObject () override
 This method is called when the component is attached to a game object. At this point the owner pointer is already set. A derived type can override this method to do additional work.
 
virtual void OnBeforeDetachedFromObject () override
 This method is called when the component is detached from a game object. At this point the owner pointer is still set. A derived type can override this method to do additional work.
 
void OnUpdateLocalBounds (ezUpdateLocalBoundsMessage &msg) const
 
void OnExtractRenderData (ezExtractRenderDataMessage &msg) const
 
void SetMeshFile (const char *szFile)
 
const char * GetMeshFile () const
 
- Public Member Functions inherited from ezComponent
bool IsDynamic () const
 Returns whether this component is dynamic and thus can only be attached to dynamic game objects.
 
void SetActive (bool bActive)
 Sets the active state of the component. Note that it is up to the manager if he differentiates between active and inactive components.
 
void Activate ()
 Activates the component. Note that it is up to the manager if he differentiates between active and inactive components.
 
void Deactivate ()
 Deactivates the component.
 
bool IsActive () const
 Returns whether this component is active.
 
ezComponentManagerBaseGetManager () const
 Returns the corresponding manager for this component.
 
ezGameObjectGetOwner ()
 Returns the owner game object if the component is attached to one or nullptr.
 
const ezGameObjectGetOwner () const
 Returns the owner game object if the component is attached to one or nullptr.
 
ezComponentHandle GetHandle () const
 Returns a handle to this component.
 
- Public Member Functions inherited from ezReflectedClass
EZ_FORCE_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_FORCE_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 
virtual void Serialize (ezArchiveWriter &stream) const
 This function is called to serialize the instance. More...
 
virtual void Deserialize (ezArchiveReader &stream)
 This function is called to deserialize the instance. More...
 
virtual void OnDeserialized ()
 This function is called after all objects are deserialized and thus all references to other objects are valid. More...
 

Public Attributes

ezColor m_MeshColor
 
- Public Attributes inherited from ezComponent
ezUInt32 m_uiEditorPickingID
 

Private Member Functions

 EZ_DECLARE_COMPONENT_TYPE (ezMeshComponent, ezMeshComponentManager)
 
ezUInt32 Materials_GetCount () const
 
const char * Materials_GetValue (ezUInt32 uiIndex) const
 
void Materials_SetValue (ezUInt32 uiIndex, const char *value)
 
void Materials_Insert (ezUInt32 uiIndex, const char *value)
 
void Materials_Remove (ezUInt32 uiIndex)
 

Private Attributes

ezRenderPassType m_iRenderPass
 
ezMeshResourceHandle m_hMesh
 
ezDynamicArray
< ezMaterialResourceHandle
m_Materials
 

Additional Inherited Members

- Static Public Member Functions inherited from ezComponent
static ezUInt16 TypeId ()
 Returns the type id corresponding to this component type.
 
static ezUInt16 GetNextTypeId ()
 Gets the next component id for a new type. Internal use only.
 
- Protected Member Functions inherited from ezComponent
 ezComponent ()
 Keep the constructor private or protected in derived classes, so it cannot be called manually.
 
template<typename T >
ezComponentHandle GetHandle () const
 
- Protected Attributes inherited from ezComponent
ezBitflags< ezObjectFlagsm_Flags
 

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