7#define GLM_ENABLE_EXPERIMENTAL
9#include <glm/gtx/quaternion.hpp>
12#define GLM_ENABLE_EXPERIMENTAL
13#include <glm/gtx/quaternion.hpp>
104 virtual void rotateAbsolute(
const glm::vec3& dir,
bool is_player =
false,
const glm::vec3& axis = glm::vec3(0.0f, 1.0f, 0.0f));
114 virtual void rotateAbsolute(
const float& angle,
const glm::vec3& axis = glm::vec3(0.0f, 1.0f, 0.0f));
124 virtual void rotateRelative(
const glm::vec3& dir,
const glm::vec3& axis = glm::vec3(0.0f, 1.0f, 0.0f));
139 virtual void clear();
Definition: renderable.hpp:22
virtual void scaleAbsolute(const float &new_factor)
Definition: renderable.cpp:31
virtual void clearPosition()
Definition: renderable.cpp:71
virtual void rotateRelative(const glm::vec3 &dir, const glm::vec3 &axis=glm::vec3(0.0f, 1.0f, 0.0f))
Rotates the item along the specified axis. If no axis is specified, then assumes a rotation on the y-...
Definition: renderable.cpp:52
virtual void rotateAbsolute(const glm::vec3 &dir, bool is_player=false, const glm::vec3 &axis=glm::vec3(0.0f, 1.0f, 0.0f))
Rotates the item along the specified axis. If no axis is specified, then assumes a rotation on the y-...
Definition: renderable.cpp:43
virtual void draw(Shader *shader, glm::vec3 camPos, bool fill)=0
glm::mat4 getModelMat()
Definition: renderable.cpp:59
virtual void translateRelative(const glm::vec3 &delta)
Definition: renderable.cpp:18
Renderable()
Definition: renderable.cpp:12
virtual void scaleRelative(const float &new_factor)
Definition: renderable.cpp:22
virtual void translateAbsolute(const glm::vec3 &new_pos)
Definition: renderable.cpp:14
virtual void clearScale()
Definition: renderable.cpp:67
virtual void clear()
Definition: renderable.cpp:63
Definition: shader.hpp:12
GLuint shader
Definition: glad.h:1843