33 lines
437 B
C++
33 lines
437 B
C++
#ifndef CUBE_H
|
|
#define CUBE_H
|
|
|
|
#include "../../../fixC11.h"
|
|
#include <Indoor/geo/Point3.h>
|
|
#include "Renderable3D.h"
|
|
|
|
class Shader;
|
|
|
|
class Cube : public Renderable3D {
|
|
|
|
private:
|
|
|
|
Point3 pos;
|
|
Point3 size;
|
|
Point3 rot;
|
|
|
|
Point3 color;
|
|
|
|
public:
|
|
|
|
Cube(Point3 pos, float size);
|
|
|
|
Cube(Point3 pos, Point3 size, Point3 rot);
|
|
|
|
void setColor(float r, float g, float b);
|
|
|
|
void render(const RenderSettings& rs) override;
|
|
|
|
};
|
|
|
|
#endif // CUBE_H
|