|
Monad Engine da02fba2
> Undercity Codex_
|
#include <CameraComponent.h>
Inheritance diagram for eng::CameraComponent:
Collaboration diagram for eng::CameraComponent:Public Member Functions | |
| void | Update (float deltaTime) override |
| glm::mat4 | GetViewMatrix () const |
| glm::mat4 | GetProjectionMatrix (float aspect) const |
| virtual void | LoadProperties (const nlohmann::json &json) |
| virtual void | Init () |
| virtual size_t | GetTypeId () const =0 |
| GameObject * | GetOwner () |
Static Public Member Functions | |
| template<typename T > | |
| static size_t | StaticTypeId () |
Protected Attributes | |
| GameObject * | m_owner = nullptr |
Definition at line 8 of file CameraComponent.h.
|
inherited |
Definition at line 15 of file Component.cpp.
References eng::Component::m_owner.
Referenced by eng::MeshComponent::Update(), and eng::SpriteComponent::Update().
| glm::mat4 eng::CameraComponent::GetProjectionMatrix | ( | float | aspect | ) | const |
Definition at line 26 of file CameraComponent.cpp.
|
pure virtualinherited |
| glm::mat4 eng::CameraComponent::GetViewMatrix | ( | ) | const |
Definition at line 11 of file CameraComponent.cpp.
References eng::GameObject::GetParent(), eng::GameObject::GetPosition(), eng::GameObject::GetRotation(), eng::GameObject::GetWorldTransform(), and eng::Component::m_owner.
|
virtualinherited |
Reimplemented in eng::PhysicsComponent, and eng::PlayerControllerComponent.
Definition at line 11 of file Component.cpp.
Referenced by eng::GameObject::AddComponent().
|
virtualinherited |
Reimplemented in eng::AudioComponent, eng::LightComponent, eng::MeshComponent, eng::PhysicsComponent, and eng::SpriteComponent.
Definition at line 7 of file Component.cpp.
|
inlinestaticinherited |
Definition at line 26 of file Component.h.
|
overridevirtual |
Implements eng::Component.
Definition at line 7 of file CameraComponent.cpp.
|
protectedinherited |
Definition at line 33 of file Component.h.
Referenced by eng::GameObject::AddComponent(), eng::Component::GetOwner(), GetViewMatrix(), eng::PhysicsComponent::Init(), eng::PlayerControllerComponent::Init(), eng::AudioComponent::Update(), eng::AudioListenerComponent::Update(), eng::PhysicsComponent::Update(), and eng::PlayerControllerComponent::Update().