3 #include <gtc/type_ptr.hpp>
4 #include <gtc/matrix_transform.hpp>
5 #include <unordered_map>
42 std::unordered_map<std::string, Shader*> &
shaders);
55 std::unordered_map<std::string, Object*> &objects, std::unordered_map<std::string, Shader*> &
shaders);
68 std::unordered_map<std::string, Object*> &objects, std::unordered_map<std::string, Shader*> &
shaders,
82 void draw(glm::mat4 &viewMatrix, glm::mat4 &projMatrix);
102 void rotate(glm::vec3 rotation);
126 void scale(glm::vec3 scaleVector);
void rotateZ(float angle)
Definition: Model.cpp:198
std::string material
Definition: Model.h:26
GLdouble GLdouble z
Definition: glew.h:1558
glm::mat4 matrix
Definition: Model.h:24
void draw(glm::mat4 &viewMatrix, glm::mat4 &projMatrix)
Definition: Model.cpp:108
Creates a Model from an object and a shader.
Definition: Model.h:14
void rotateY(float angle)
Definition: Model.cpp:189
GLint GLint GLint GLint GLint GLint y
Definition: glew.h:1251
void initialiseShaders(std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders)
Definition: Model.cpp:84
void setPosition(glm::vec3 position)
Definition: Model.cpp:143
void initialiseVAO(std::string objFileName, std::unordered_map< std::string, Object * > &objects)
Definition: Model.cpp:44
GLsizei GLsizei GLuint * shaders
Definition: glew.h:1826
Object * obj
Definition: Model.h:20
Shader * shader
Definition: Model.h:18
~Model()
Definition: Model.cpp:37
void rotateX(float angle)
Definition: Model.cpp:180
void scale(glm::vec3 scaleVector)
Definition: Model.cpp:207
Creates a Shader for use with OpenGL. Creates a Shader from an text file, this can then be used with ...
Definition: Shader.h:13
GLint GLint GLint GLint GLint x
Definition: glew.h:1251
Creates an object for use with OpenGL. Creates an object from an text file, this can then be used wit...
Definition: Object.h:16
GLdouble angle
Definition: glew.h:8878
void rotate(glm::vec3 rotation)
Definition: Model.cpp:169
Model(std::string vertexShaderFileName, std::string fragmentShaderFileName, std::string objFileName, std::unordered_map< std::string, Object * > &objects, std::unordered_map< std::string, Shader * > &shaders)
Definition: Model.cpp:6
glm::vec3 position
Definition: Model.h:22
GLsizei const GLchar *const * string
Definition: glew.h:1843