#include <Object.hpp>
Public Types | |
using | Map = std::unordered_map<id_t, Object> |
Public Member Functions | |
~Object ()=default | |
Object (const Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=default | |
Object & | operator= (Object &&)=default |
id_t | getId () const |
Static Public Member Functions | |
static Object | createObject () |
static Object | makePointLight (float intensity=10.F, float radius=0.1F, glm::vec3 color=glm::vec3(1.F)) |
Public Attributes | |
std::shared_ptr< Model > | model {} |
glm::vec3 | color {} |
Transform3DComponent | transform3D {} |
std::unique_ptr< PointLightComponent > | pointLight = nullptr |
Private Member Functions | |
Object (const id_t objId) | |
Private Attributes | |
id_t | m_objId |
Definition at line 33 of file Object.hpp.
using ven::Object::Map = std::unordered_map<id_t, Object> |
Definition at line 37 of file Object.hpp.
|
default |
|
delete |
|
default |
|
inlineexplicitprivate |
Definition at line 60 of file Object.hpp.
|
inlinestatic |
Definition at line 40 of file Object.hpp.
References Object().
Referenced by ven::Engine::loadObjects(), ven::Engine::mainLoop(), and makePointLight().
|
inlinenodiscard |
Definition at line 51 of file Object.hpp.
References m_objId.
Referenced by ven::Engine::loadObjects().
|
static |
Definition at line 67 of file object.cpp.
References color, createObject(), pointLight, ven::Transform3DComponent::scale, and transform3D.
Referenced by ven::Engine::loadObjects().
glm::vec3 ven::Object::color {} |
Definition at line 54 of file Object.hpp.
Referenced by ven::Engine::loadObjects(), and makePointLight().
|
private |
Definition at line 62 of file Object.hpp.
Referenced by getId().
std::shared_ptr<Model> ven::Object::model {} |
Definition at line 53 of file Object.hpp.
Referenced by ven::Engine::loadObjects().
std::unique_ptr<PointLightComponent> ven::Object::pointLight = nullptr |
Definition at line 57 of file Object.hpp.
Referenced by makePointLight().
Transform3DComponent ven::Object::transform3D {} |
Definition at line 55 of file Object.hpp.
Referenced by ven::Engine::loadObjects(), ven::Engine::mainLoop(), and makePointLight().