started the renderer abstraction and the cubemap renderer
[laserbrain_demo] / src / rend_cubemap.h
diff --git a/src/rend_cubemap.h b/src/rend_cubemap.h
new file mode 100644 (file)
index 0000000..00995c7
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef REND_CUBEMAP_H_
+#define REND_CUBEMAP_H_
+
+#include "renderer.h"
+#include "texture.h"
+
+class RendCubemap : public Renderer {
+private:
+       Vec3 pos;
+       Texture *cubemap;
+       unsigned int fbo, zbuf;
+
+public:
+       void set_position(const Vec3 &pos);
+       void set_cubemap(Texture *cubemap);
+
+       void draw() const;
+};
+
+#endif // REND_CUBEMAP_H_