MeshComponent Class. This class defines the specific behaves of MeshComponent. More...
#include <MeshComponent.h>
Public Member Functions | |
| MeshComponent ()=default | |
| Constructor Function. | |
| virtual | ~MeshComponent () override=default |
| Destructor Function. | |
| virtual void | OnSerialize () override |
| This interface defines how to serialize. | |
| virtual void | OnDeSerialize () override |
| This interface defines how to deserialize. | |
| virtual void | DrawThis () override |
| This interface defines how to draw this component to property panel. | |
| void | SetMesh (std::shared_ptr< Mesh > mesh) |
| Set the Mesh this component handled. | |
| std::shared_ptr< Mesh > | GetMesh () |
| Get the Mesh variable. | |
| virtual void | OnComponentAdded (const entt::entity &entity) |
| This interface defines the behaves on specific component added. Init with variable. | |
Protected Attributes | |
| std::shared_ptr< Mesh > | m_Mesh |
| The Mesh this component handled. | |
| entt::entity | m_Owner { entt::null } |
| This component's Owner entity. | |
MeshComponent Class. This class defines the specific behaves of MeshComponent.
Definition at line 20 of file MeshComponent.h.