25 lines
394 B
C++
25 lines
394 B
C++
#include <iostream>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <glm/vec4.hpp>
|
|
#include "ADrawable.h"
|
|
|
|
#pragma once
|
|
class ColorCube : public ADrawable
|
|
{
|
|
private:
|
|
GLuint _vaoHandle;
|
|
GLuint _iboHandle;
|
|
GLuint _vbo_vertices, _vbo_colors;
|
|
|
|
void setup();
|
|
|
|
public:
|
|
ColorCube();
|
|
|
|
void draw(ShaderProgram *shader, glm::mat4x4 pv) override;
|
|
DrawableType getType() override;
|
|
~ColorCube();
|
|
};
|
|
|