X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectinstance.h;h=6094517b6d5c062ca220b14e686e5dade8802335;hb=ee31badbd85f64eaca16c3a2e9db217465992a69;hp=5911dae57fb6f173210ea18936a8e353c11c9f54;hpb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;p=libs%2Fgl.git diff --git a/source/objectinstance.h b/source/objectinstance.h index 5911dae5..6094517b 100644 --- a/source/objectinstance.h +++ b/source/objectinstance.h @@ -11,9 +11,12 @@ class Object; class ProgramData; /** -Represents a single instance of an Object. An application can derive another -class from this and overload the hook functions to specify location and other -instance-specific parameters for the rendered objects. +Represents a single instance of an Object. A derived class can overload the +hook functions to specify a model matrix and other instance-specific parameters +for the rendered objects. + +ObjectInstances can benefit from being put in an InstanceScene, which will +render all instances of the same object consecutively. */ class ObjectInstance: public Renderable { @@ -38,7 +41,7 @@ public: anything. */ virtual void finish_render(Renderer &, const Tag &) const { } - virtual unsigned get_level_of_detail() const { return 0; } + virtual unsigned get_level_of_detail(const Renderer &) const { return 0; } }; } // namespace GL