Shkyera Engine
Easy to use, game engine for Python
Entity.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "glm/gtc/quaternion.hpp"
4 #include "glm/vec3.hpp"
5 
6 namespace shkyera {
7 
12 class Entity {
13  public:
17  Entity();
18 
24  Entity(glm::vec3 position);
25 
32  Entity(glm::vec3 position, glm::vec3 orientation);
33 
37  ~Entity() = default;
38 
44  glm::vec3 &getPosition();
45 
51  glm::vec3 &getOrientation();
52 
58  glm::vec3 &getScale();
59 
60  private:
61  glm::vec3 _position;
62  glm::vec3 _orientation;
63  glm::vec3 _scale;
64 };
65 
66 } // namespace shkyera
A class representing an entity in a 3D world with position, orientation, and scale.
Definition: Entity.hpp:12
glm::vec3 & getScale()
Get the scale of the entity.
Definition: Entity.cpp:11
glm::vec3 _scale
The scale of the entity.
Definition: Entity.hpp:63
glm::vec3 & getPosition()
Get the position of the entity.
Definition: Entity.cpp:9
glm::vec3 _orientation
The orientation of the entity.
Definition: Entity.hpp:62
glm::vec3 _position
The position of the entity.
Definition: Entity.hpp:61
Entity()
Default constructor for an entity with identity position, orientation, and scale.
Definition: Entity.cpp:5
glm::vec3 & getOrientation()
Get the orientation of the entity.
Definition: Entity.cpp:10
~Entity()=default
Destructor for the Entity class.
Definition: Entity.cpp:3