]> git.tdb.fi Git - libs/gl.git/blobdiff - source/objectinstance.h
Add an object LoD bias parameter to Renderer
[libs/gl.git] / source / objectinstance.h
index 7c2cc9a755afca9fe8e8a17981c80ecaf9920c44..1ad221c78e9f3796c22e2d04ae52817fec477b8b 100644 (file)
@@ -35,7 +35,7 @@ public:
        ObjectInstance(const Object &);
 
        const Object &get_object() const { return object; }
-       virtual long get_instance_key() const { return reinterpret_cast<long>(&object); }
+       virtual IntPtr get_instance_key() const { return reinterpret_cast<IntPtr>(&object); }
 
        virtual const Geometry::BoundingSphere<float, 3> *get_bounding_sphere() const { return object.get_bounding_sphere(); }
 
@@ -51,7 +51,7 @@ public:
        anything. */
        virtual void finish_render(Renderer &, const Tag &) const { }
 
-       virtual unsigned get_level_of_detail(const Renderer &) const { return 0; }
+       virtual unsigned get_level_of_detail(const Renderer &) const;
 };
 
 } // namespace GL