Merge branch 'master' of goat:git/laserbrain_demo
[laserbrain_demo] / src / rend_cubemap.h
index 00995c7..4bacd9e 100644 (file)
@@ -8,13 +8,20 @@ class RendCubemap : public Renderer {
 private:
        Vec3 pos;
        Texture *cubemap;
-       unsigned int fbo, zbuf;
+       mutable unsigned int fbo, zbuf;
+       mutable int zbuf_width, zbuf_height;
+       Mat4 proj_matrix;
+
+       void setup(int face_idx) const;
 
 public:
+       RendCubemap();
+
        void set_position(const Vec3 &pos);
        void set_cubemap(Texture *cubemap);
 
        void draw() const;
+       void draw_object(Object *obj) const;
 };
 
 #endif // REND_CUBEMAP_H_