X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectinstance.h;h=3dc5da6a399432bafa62197b01ae0e19d7475f5f;hb=904de4f7fd994886adbd3a6c03bc1b7c14ebc562;hp=5911dae57fb6f173210ea18936a8e353c11c9f54;hpb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;p=libs%2Fgl.git diff --git a/source/objectinstance.h b/source/objectinstance.h index 5911dae5..3dc5da6a 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 {