X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectinstance.h;h=d85d2db895f3e95faa21a7005ec2b4379281f745;hb=ff072e148afae24018696c03a413c9ae2da6c929;hp=6a8749766f39ca08223c07d8971435c3abe1eebb;hpb=46921b54c8252bb535a3b2cb7be97eb38e66eaed;p=libs%2Fgl.git diff --git a/source/objectinstance.h b/source/objectinstance.h index 6a874976..d85d2db8 100644 --- a/source/objectinstance.h +++ b/source/objectinstance.h @@ -3,22 +3,20 @@ #include #include "object.h" -#include "renderable.h" +#include "placeable.h" namespace Msp { namespace GL { -class ProgramData; - /** -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. +Represents a single instance of an Object. Thanks to being derived from +Placeable in can be positioned without additional effort. Other instance +parameters can be set by overriding the hook functions. ObjectInstances can benefit from being put in an InstanceScene, which will render all instances of the same object consecutively. */ -class ObjectInstance: public Renderable +class ObjectInstance: public PlacedRenderable { protected: const Object &object;