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

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

#include <MeshComponent.h>

Inheritance diagram for Spices::MeshComponent:
Spices::Component Spices::SkyBoxComponent

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< MeshGetMesh ()
 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< Meshm_Mesh
 The Mesh this component handled.
 
entt::entity m_Owner { entt::null }
 This component's Owner entity.
 

Detailed Description

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

Definition at line 20 of file MeshComponent.h.


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