You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
595 B
42 lines
595 B
/* |
|
* Rick van Vonderen |
|
* 0945444 |
|
* TI2B |
|
*/ |
|
|
|
#ifndef CUBE_H |
|
#define CUBE_H |
|
|
|
#include <glm/glm.hpp> |
|
|
|
#include "object.h" |
|
|
|
class Shader; |
|
|
|
class Cube : public Object { |
|
public: |
|
Cube(); |
|
Cube(float r, float g, float b); |
|
~Cube(); |
|
|
|
// ----------------------------------------- |
|
|
|
void initialize(); |
|
void update(); |
|
void render(); |
|
void destroy(); |
|
|
|
// ----------------------------------------- |
|
|
|
void setColor(float r, float g, float b); |
|
|
|
private: |
|
unsigned int m_vao; |
|
unsigned int m_vbo; |
|
unsigned int m_vSize; |
|
unsigned int m_texture; |
|
glm::vec3 m_color; |
|
Shader *m_shader; |
|
}; |
|
|
|
#endif // CUBE_H
|
|
|