Creates an object from an text file, this can then be used with OpenGL.
More...
#include <Object.h>
Creates an object from an text file, this can then be used with OpenGL.
◆ Object() [1/2]
Object::Object |
( |
std::string |
objFileName | ) |
|
Creates a vertex array object using a obj file location and OpenGL.
- Parameters
-
objFileName | The name of the obj file. |
◆ Object() [2/2]
Object::Object |
( |
std::string |
objFileName, |
|
|
std::string |
material |
|
) |
| |
Creates a vertex array object using a obj file location and OpenGL.
- Parameters
-
objFileName | The name of the obj file. |
material | The name of the material file. |
◆ ~Object()
◆ getNumberOfVertices()
unsigned int Object::getNumberOfVertices |
( |
| ) |
|
Returns the number of vertices.
- Returns
- The number of vertices.
◆ getTextureID()
GLuint Object::getTextureID |
( |
| ) |
|
Returns the Texture ID.
- Returns
- The texture ID.
◆ getVAO()
GLuint Object::getVAO |
( |
| ) |
|
Returns the vertex array object.
- Returns
- The vertex array object.
◆ initialiseTexture()
void Object::initialiseTexture |
( |
std::vector< float > |
vertexTextures | ) |
|
|
private |
Initialise the texture.
- Parameters
-
vertexTextures | The vertex textures vector. |
◆ InitialiseVAO()
void Object::InitialiseVAO |
( |
std::string |
objFileName | ) |
|
|
private |
Initialise the vertex array object.
- Parameters
-
objFileName | The name of the obj file. |
◆ material
std::string Object::material |
|
private |
The name of the material.
◆ numberOfVertices
unsigned int Object::numberOfVertices |
|
private |
Number of vertices in the model.
◆ textureID
◆ vertexArrayObject
GLuint Object::vertexArrayObject |
|
private |
The Vertex Array Object for use with OpenGL.
The documentation for this class was generated from the following files: