-
Notifications
You must be signed in to change notification settings - Fork 1
/
object.h
41 lines (33 loc) · 801 Bytes
/
object.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef OBJECT_H
#define OBJECT_H
#include <vector>
#include "graphics_headers.h"
#include "Texture.h"
class Object
{
public:
Object();
Object(const std::string& fname, const std::string& nMap);
~Object();
virtual void Render(GLint posAttrib, GLint colAttrib);
virtual void Render();
virtual bool hasTex();
virtual bool hasNormalMap();
virtual GLuint getTextureID();
virtual GLuint getNormalMapID();
bool getIsEmissive() const;
void setIsEmissive(bool newValue);
protected:
bool InitBuffers();
void setupVerticies();
private:
std::vector<Vertex> Vertices;
std::vector<unsigned int> Indices;
GLuint VB;
GLuint IB;
Texture* m_texture;
Texture* m_normalMap;
GLuint vao;
bool isEmissive;
};
#endif /* OBJECT_H */