Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Object.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <SDL_image.h>
5 #include <iostream>
6 #include <glm.hpp>
7 #include <string>
8 #include "glew.h"
9 #include "FileLoader.h"
10 
16 class Object
17 {
18 private:
22  unsigned int numberOfVertices;
27 
32  void initialiseTexture(std::vector<float> vertexTextures);
33 
38  void InitialiseVAO(std::string objFileName);
39 
40 public:
46  Object(std::string objFileName);
47 
54  Object(std::string objFileName, std::string material);
55 
60  ~Object();
61 
66  GLuint getVAO();
67 
73 
78  unsigned int getNumberOfVertices();
79 
80 };
unsigned int GLuint
Definition: glew.h:276
GLuint getVAO()
Definition: Object.cpp:182
Object(std::string objFileName)
Definition: Object.cpp:6
GLuint vertexArrayObject
Definition: Object.h:20
std::string material
Definition: Object.h:24
~Object()
Definition: Object.cpp:30
void InitialiseVAO(std::string objFileName)
Definition: Object.cpp:40
unsigned int numberOfVertices
Definition: Object.h:22
GLuint getTextureID()
Definition: Object.cpp:191
Creates an object for use with OpenGL. Creates an object from an text file, this can then be used wit...
Definition: Object.h:16
void initialiseTexture(std::vector< float > vertexTextures)
Definition: Object.cpp:109
unsigned int getNumberOfVertices()
Definition: Object.cpp:200
GLsizei const GLchar *const * string
Definition: glew.h:1843
GLuint textureID
Definition: Object.h:26