5 #include <gtc/type_ptr.hpp>
6 #include <gtc/matrix_transform.hpp>
51 virtual void update(
float dt) = 0;
58 void draw(glm::mat4 &viewMatrix, glm::mat4 &projMatrix);
102 void move(glm::vec3 movement);
108 void moveX(
float movement);
114 void moveY(
float movement);
120 void moveZ(
float movement);
GLdouble GLdouble z
Definition: glew.h:1558
Model * model
Definition: Entity.h:20
Creates a Model from an object and a shader.
Definition: Model.h:14
Entity(Model *model, float scaleValue)
Definition: Entity.cpp:6
void rotateX(float angle)
Definition: Entity.cpp:63
void rotateZ(float angle)
Definition: Entity.cpp:103
GLint GLint GLint GLint GLint GLint y
Definition: glew.h:1251
void rotateY(float angle)
Definition: Entity.cpp:83
void move(glm::vec3 movement)
Definition: Entity.cpp:134
void setPosition(glm::vec3 position)
Definition: Entity.cpp:37
virtual void update(float dt)=0
void moveY(float movement)
Definition: Entity.cpp:156
Creates an Entity containing a Model.
Definition: Entity.h:16
float getScale()
Definition: Entity.cpp:205
void draw(glm::mat4 &viewMatrix, glm::mat4 &projMatrix)
Definition: Entity.cpp:28
void moveZ(float movement)
Definition: Entity.cpp:167
void setScale(float scaleValue)
Definition: Entity.cpp:123
glm::vec3 getOrientation()
Definition: Entity.cpp:196
void moveX(float movement)
Definition: Entity.cpp:145
float scaleValue
Definition: Entity.h:26
GLint GLint GLint GLint GLint x
Definition: glew.h:1251
virtual ~Entity()
Definition: Entity.cpp:21
float rotateSpeed
Definition: Entity.h:30
glm::vec3 rotation
Definition: Entity.h:22
glm::vec3 getPosition()
Definition: Entity.cpp:187
GLdouble angle
Definition: glew.h:8878
glm::vec3 position
Definition: Entity.h:24
void setMoveSpeed(float moveSpeed)
Definition: Entity.cpp:178
float moveSpeed
Definition: Entity.h:28