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

#include <MeshController.h>

Inheritance diagram for Spices::MeshController:
Spices::NativeScriptComponent Spices::Component

Public Member Functions

 MeshController ()=default
 
virtual ~MeshController () override=default
 
virtual void OnSerialize () override
 This interface defines how to serialize.
 
virtual void OnDeSerialize () override
 This interface defines how to deserialize.
 
virtual void OnConstruction () override
 This interface defines the behaves on specific component added.
 
virtual void OnTick (TimeStep &ts) override
 This interface defines the behaves on specific component tick every frame.
 
virtual void OnEvent (Event &e) override
 This interface defines the behaves on specific component event happened.
 
glm::vec3 GetUpDirection () const
 
glm::vec3 GetRightDirection () const
 
glm::vec3 GetForwardDirection () const
 
glm::quat GetOrientation () const
 
virtual void OnComponentAdded (const entt::entity &entity) override final
 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 Member Functions

bool OnKeyPressed (KeyPressedEvent &e)
 
void MousePan (const glm::vec2 &delta)
 
void MouseRotate (const glm::vec2 &delta) const
 
void MouseZoom (float delta)
 
std::pair< float, float > PanSpeed () const
 
float RotationSpeed () const
 
float ZoomSpeed () const
 
void UpdateView () const
 
glm::vec3 CalculatePosition () const
 

Private Attributes

std::any m_CameraTranComp
 
float m_ViewportWidth = 1920
 
float m_ViewportHeight = 1080
 
float m_Distance = 10.0f
 
glm::vec2 m_InitialMousePosition = { 0.0f, 0.0f }
 
glm::vec3 m_FocalPoint = { 0.0f, 0.0f, 0.0f }
 
std::shared_ptr< NativeScriptComponentm_RealNScriptComp
 Real component.
 

Detailed Description

Definition at line 11 of file MeshController.h.


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