22 Object(std::string objFileName);
GLuint getVAO()
Returns the vertex array object.
Definition: Object.cpp:166
Object(std::string objFileName)
Creates a vertex array object using a obj file location and OpenGL.
Definition: Object.cpp:5
GLuint vertexArrayObject
The Vertex Array Object for use with OpenGL.
Definition: Object.h:56
std::string material
The name of the material.
Definition: Object.h:60
~Object()
Destructs an Object.
Definition: Object.cpp:23
void InitialiseVAO(std::string objFileName)
Initialise the vertex array object.
Definition: Object.cpp:30
unsigned int numberOfVertices
Number of vertices in the model.
Definition: Object.h:58
GLuint getTextureID()
Returns the Texture ID.
Definition: Object.cpp:172
Creates an object from an text file, this can then be used with OpenGL.
Definition: Object.h:15
void initialiseTexture(std::vector< float > vertexTextures)
Initialise the texture.
Definition: Object.cpp:96
unsigned int getNumberOfVertices()
Returns the number of vertices.
Definition: Object.cpp:178
GLuint textureID
The Texture.
Definition: Object.h:62