SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::SpriteComponent Class Reference

SpriteComponent Class. This class defines the specific behaves of SpriteComponent. More...

#include <SpriteComponent.h>

Inheritance diagram for Spices::SpriteComponent:
Spices::Component

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< MeshGetMesh ()
 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< Meshm_Mesh
 The Mesh this component handled.
 

Detailed Description

SpriteComponent Class. This class defines the specific behaves of SpriteComponent.

Definition at line 18 of file SpriteComponent.h.


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