-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathG_Cuboid.hpp
34 lines (30 loc) · 846 Bytes
/
G_Cuboid.hpp
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
#ifndef MY_G_CUBOID_HPP
#define MY_G_CUBOID_HPP
#include <string>
#include "Util.hpp"
#include "Shader.hpp"
class G_Cuboid {
protected:
Shader shader;
const fv* vertex_data;
public:
G_Cuboid(const fv* vertexData, std::string vertPath, std::string fragPath);
GLuint VAO;
GLuint VBO;
virtual void bindBuffers() const;
void useShader() const;
int drawSize() const;
GLint shaderProgram() const;
virtual ~G_Cuboid();
};
class G_Cuboid_Color : public G_Cuboid {
protected:
const fv* color_data;
GLuint VBO_color;
public:
G_Cuboid_Color(const fv* vertexData, std::string vertPath, std::string fragPath,
const fv* colorData);
virtual void bindBuffers() const;
virtual ~G_Cuboid_Color();
};
#endif