SpriteComponent Class. This class defines the specific behaves of SpriteComponent. More...
#include <SpriteComponent.h>
Public Member Functions | |
| SpriteComponent () | |
| Constructor Function. | |
| virtual | ~SpriteComponent () override=default |
| Destructor Function. | |
| virtual void | OnSerialize () override |
| This interface defines how to serialize. | |
| virtual void | OnDeSerialize () override |
| This interface defines how to deserialize. | |
| void | SetMaterial (const std::string &materialPath) |
| Set Sprite Material. | |
| 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. | |
| virtual void | DrawThis () |
| This interface defines how to draw this component to property panel. | |
Protected Attributes | |
| entt::entity | m_Owner { entt::null } |
| This component's Owner entity. | |
Private Attributes | |
| std::shared_ptr< Mesh > | m_Mesh |
| The Mesh this component handled. | |
SpriteComponent Class. This class defines the specific behaves of SpriteComponent.
Definition at line 18 of file SpriteComponent.h.