X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstancescene.h;h=18229d72cc59b59a43408c6bd2e6dd9de1decdb3;hb=9efabb345fbcc8fb183597e3a264c9847dd7fa53;hp=55bd266d7afbd80ea77dabbb725b620b14b7c1de;hpb=25c81b4953dd38993250321b9407ce8b0139cbeb;p=libs%2Fgl.git diff --git a/source/instancescene.h b/source/instancescene.h index 55bd266d..18229d72 100644 --- a/source/instancescene.h +++ b/source/instancescene.h @@ -15,22 +15,18 @@ Distributed under the LGPL namespace Msp { namespace GL { -class Object; -class ObjectInstance; - /** -A Scene optimized for rendering ObjectInstances. All instances of the same -Object are rendered in one go; otherwise the rendering order is unspecified. +A Scene optimized for rendering instanced Renderables, such as ObjectInstances. +All Renderables with the same instance key are rendered consecutively; within +the same key rendering order is unspecified. */ class InstanceScene: public Scene { private: - typedef std::set InstanceSet; - typedef std::map ObjectMap; typedef std::set RenderableSet; + typedef std::map InstanceMap; - ObjectMap objects; - RenderableSet renderables; + InstanceMap renderables; public: virtual void add(const Renderable &);