Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
mnd::SkinnedMeshComponent Class Referenceabstract

#include <SkinnedMeshComponent.h>

+ Inheritance diagram for mnd::SkinnedMeshComponent:
+ Collaboration diagram for mnd::SkinnedMeshComponent:

Public Member Functions

 SkinnedMeshComponent ()=default
 
 SkinnedMeshComponent (const std::shared_ptr< Material > &material, const std::shared_ptr< Mesh > &mesh, const std::shared_ptr< Skeleton > &skeleton)
 
void Update (f32 deltaTime) override
 
void SetMaterial (const std::shared_ptr< Material > &material)
 
void SetMesh (const std::shared_ptr< Mesh > &mesh)
 
void SetSkeleton (const std::shared_ptr< Skeleton > &skeleton)
 
void SetPaletteSource (AnimationComponent *anim)
 Plug an AnimationComponent (typically on the model root) as the live palette source.
 
virtual void LoadProperties (const nlohmann::json &json)
 
virtual void Init ()
 
virtual size_t GetTypeId () const =0
 
GameObjectGetOwner ()
 

Static Public Member Functions

template<typename T >
static size_t StaticTypeId ()
 

Protected Attributes

GameObjectm_owner = nullptr
 

Detailed Description

Definition at line 32 of file SkinnedMeshComponent.h.

Constructor & Destructor Documentation

◆ SkinnedMeshComponent() [1/2]

mnd::SkinnedMeshComponent::SkinnedMeshComponent ( )
default

◆ SkinnedMeshComponent() [2/2]

mnd::SkinnedMeshComponent::SkinnedMeshComponent ( const std::shared_ptr< Material > &  material,
const std::shared_ptr< Mesh > &  mesh,
const std::shared_ptr< Skeleton > &  skeleton 
)

Definition at line 15 of file SkinnedMeshComponent.cpp.

Member Function Documentation

◆ GetOwner()

GameObject * mnd::Component::GetOwner ( )
inherited

Definition at line 12 of file Component.cpp.

References mnd::Component::m_owner.

Referenced by mnd::MeshComponent::Update(), and Update().

◆ GetTypeId()

virtual size_t mnd::Component::GetTypeId ( ) const
pure virtualinherited

◆ Init()

void mnd::Component::Init ( )
virtualinherited

Reimplemented in mnd::PhysicsComponent, and mnd::PlayerControllerComponent.

Definition at line 10 of file Component.cpp.

Referenced by mnd::GameObject::AddComponent().

◆ LoadProperties()

void mnd::Component::LoadProperties ( const nlohmann::json &  json)
virtualinherited

◆ SetMaterial()

void mnd::SkinnedMeshComponent::SetMaterial ( const std::shared_ptr< Material > &  material)

Definition at line 58 of file SkinnedMeshComponent.cpp.

References material.

◆ SetMesh()

void mnd::SkinnedMeshComponent::SetMesh ( const std::shared_ptr< Mesh > &  mesh)

Definition at line 63 of file SkinnedMeshComponent.cpp.

References mesh.

◆ SetPaletteSource()

void mnd::SkinnedMeshComponent::SetPaletteSource ( AnimationComponent anim)

Plug an AnimationComponent (typically on the model root) as the live palette source.

Definition at line 77 of file SkinnedMeshComponent.cpp.

◆ SetSkeleton()

void mnd::SkinnedMeshComponent::SetSkeleton ( const std::shared_ptr< Skeleton > &  skeleton)

Definition at line 68 of file SkinnedMeshComponent.cpp.

◆ StaticTypeId()

template<typename T >
static size_t mnd::Component::StaticTypeId ( )
inlinestaticinherited

Definition at line 50 of file Component.h.

◆ Update()

Member Data Documentation

◆ m_owner


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