X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Frend_cubemap.h;h=4bacd9e402286f765fe523d28f39eadf09efc6de;hp=00995c7dc6a33d34bc8d18a4e17daceeb6e50a73;hb=6ef619c6d92c698728576a4ec1c798a0f716d9a4;hpb=51fde62020614e8d942f28572efe1ba4fefd6a50 diff --git a/src/rend_cubemap.h b/src/rend_cubemap.h index 00995c7..4bacd9e 100644 --- a/src/rend_cubemap.h +++ b/src/rend_cubemap.h @@ -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_