An entity is an scene element. It ties together components with a transform.
More...
#include <Engine/Scene/Entity.hpp>
An entity is an scene element. It ties together components with a transform.
Definition at line 22 of file Entity.hpp.
◆ Entity()
Ra::Engine::Scene::Entity::Entity |
( |
const std::string & | name = "" | ) |
|
|
explicit |
◆ ~Entity()
Ra::Engine::Scene::Entity::~Entity |
( |
| ) |
|
|
override |
◆ addComponent()
void Ra::Engine::Scene::Entity::addComponent |
( |
Component * | component | ) |
|
Add a component to the given entity. Component ownership is transfered to the entity.
Definition at line 26 of file Entity.cpp.
◆ computeAabb()
Core::Aabb Ra::Engine::Scene::Entity::computeAabb |
( |
| ) |
|
|
virtual |
◆ getComponent() [1/2]
Get component with a given name.
Definition at line 40 of file Entity.cpp.
◆ getComponent() [2/2]
◆ getComponents()
◆ getName()
const std::string & Ra::Engine::Scene::Entity::getName |
( |
| ) |
const |
|
inline |
◆ getNumComponents()
uint Ra::Engine::Scene::Entity::getNumComponents |
( |
| ) |
const |
|
inline |
Get component belonging to a given system.
Definition at line 118 of file Entity.hpp.
◆ getTransform()
const Core::Transform & Ra::Engine::Scene::Entity::getTransform |
( |
| ) |
const |
|
inline |
◆ getTransformAsMatrix()
const Core::Matrix4 & Ra::Engine::Scene::Entity::getTransformAsMatrix |
( |
| ) |
const |
|
inline |
◆ invalidateAabb()
void Ra::Engine::Scene::Entity::invalidateAabb |
( |
| ) |
|
◆ removeComponent()
void Ra::Engine::Scene::Entity::removeComponent |
( |
const std::string & | name | ) |
|
Deletes a component with a given name.
Definition at line 59 of file Entity.cpp.
◆ rename()
void Ra::Engine::Scene::Entity::rename |
( |
const std::string & | name | ) |
|
|
inline |
◆ setTransform() [1/2]
void Ra::Engine::Scene::Entity::setTransform |
( |
const Core::Matrix4 & | transform | ) |
|
|
inline |
◆ setTransform() [2/2]
void Ra::Engine::Scene::Entity::setTransform |
( |
const Core::Transform & | transform | ) |
|
|
inline |
◆ swapTransformBuffers()
void Ra::Engine::Scene::Entity::swapTransformBuffers |
( |
| ) |
|
◆ transformationObservers()
get a ref to transformation observers to add/remove an observer
Definition at line 122 of file Entity.hpp.
The documentation for this class was generated from the following files:
- /home/runner/work/Radium-Engine/Radium-Engine/src/Radium-Engine/src/Engine/Scene/Entity.hpp
- /home/runner/work/Radium-Engine/Radium-Engine/src/Radium-Engine/src/Engine/Scene/Entity.cpp