]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/occludedscene.h
Load various built-in things through Resources
[libs/gl.git] / source / render / occludedscene.h
index 2898bb3ff92032c703c916232ae7459845c0fe8c..000673ddfbb3740f76f9cf511c4606d7a5ec8d0e 100644 (file)
@@ -31,15 +31,15 @@ private:
        typedef std::set<Renderable *> RenderableSet;
        typedef std::vector<OccludedRenderable> OccludedArray;
 
-       Mesh bounding_mesh;
-       Program bounding_shader;
+       const Mesh &bounding_mesh;
+       const Program &bounding_shader;
        RenderableSet renderables;
        float occluder_min_size;
        mutable OccludedArray occluded_cache;
        mutable bool cache_dirty;
 
 public:
-       OccludedScene();
+       OccludedScene(Resources &);
        ~OccludedScene();
 
        virtual void add(Renderable &);