diff --git a/Entity.cpp b/Entity.cpp new file mode 100644 index 0000000..0d3835a --- /dev/null +++ b/Entity.cpp @@ -0,0 +1,16 @@ +#include "Entity.h" + +Entity::Entity(std::shared_ptr _mesh) +{ + mesh = _mesh; +} + +Transform* Entity::GetTransform() +{ + return &transform; +} + +std::shared_ptr Entity::GetMesh() +{ + return mesh; +} diff --git a/Entity.h b/Entity.h new file mode 100644 index 0000000..ea780c9 --- /dev/null +++ b/Entity.h @@ -0,0 +1,18 @@ +#pragma once + +#include "Mesh.h" +#include "Transform.h" +#include + +class Entity +{ +public: + Entity(std::shared_ptr _mesh); + + Transform* GetTransform(); + std::shared_ptr GetMesh(); + +private: + Transform transform; + std::shared_ptr mesh; +};