]> git.tdb.fi Git - libs/gl.git/blobdiff - source/object.h
Use an explicit material slot name in RenderPass
[libs/gl.git] / source / object.h
index 95ba8fabc5d746bb3b41453632b340dea7673f74..88a5d9e91659189310d0f3b951841fe4ef5c4cbf 100644 (file)
@@ -59,6 +59,7 @@ public:
                void init();
                virtual void finish();
 
+               void bounding_sphere_hint(float, float, float, float);
                void level_of_detail(unsigned);
        };
 
@@ -71,6 +72,7 @@ private:
 
        std::vector<LevelOfDetail> lods;
        Geometry::BoundingSphere<float, 3> bounding_sphere;
+       bool lod0_watched;
 
 public:
        Object();
@@ -101,11 +103,10 @@ public:
        void set_technique(unsigned, const Technique *);
 
        const Technique *get_technique(unsigned = 0) const;
+       unsigned get_n_lods() const { return lods.size(); }
 
        virtual const Geometry::BoundingSphere<float, 3> *get_bounding_sphere() const { return &bounding_sphere; }
 
-       virtual void render(const Tag &tag = Tag()) const;
-
        virtual void render(Renderer &, const Tag & = Tag()) const;
 
        /** Renders an instance of the object.  The instance's hook functions are
@@ -120,6 +121,7 @@ private:
        const RenderPass *get_pass(const Tag &, unsigned) const;
 
        virtual void resource_loaded(Resource &);
+       virtual void resource_removed(Resource &);
 };
 
 } // namespace GL