X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Frender%2Foccludedscene.h;h=f11c707e6781c0ea656a7676e733e3981209ea41;hp=056acb2e0d12b2e14f74fcbffcde37cee09f7674;hb=93448d16e72e38afbaecbccf6fdedd46d6a82a73;hpb=526960705d8108dcc46dbb71d0d00d680b0b1bb3 diff --git a/source/render/occludedscene.h b/source/render/occludedscene.h index 056acb2e..f11c707e 100644 --- a/source/render/occludedscene.h +++ b/source/render/occludedscene.h @@ -3,8 +3,11 @@ #include #include +#include "blend.h" +#include "depthtest.h" #include "mesh.h" #include "program.h" +#include "query.h" #include "scene.h" namespace Msp { @@ -26,21 +29,22 @@ private: const Geometry::BoundingSphere *bounding_sphere; bool in_frustum; bool occluder; - unsigned query; OccludedRenderable(); }; const Mesh &bounding_mesh; const Program &bounding_shader; + Blend no_color_write; + DepthTest no_depth_write; std::set renderables; float occluder_min_size; + mutable QueryPool queries; mutable std::vector occluded_cache; mutable bool cache_dirty; public: OccludedScene(); - ~OccludedScene(); virtual void add(Renderable &); virtual void remove(Renderable &);