]> git.tdb.fi Git - libs/gl.git/blobdiff - source/instancescene.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / instancescene.h
diff --git a/source/instancescene.h b/source/instancescene.h
deleted file mode 100644 (file)
index d23fbb1..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#ifndef MSP_GL_INSTANCESCENE_H_
-#define MSP_GL_INSTANCESCENE_H_
-
-#include <map>
-#include <set>
-#include "scene.h"
-
-namespace Msp {
-namespace GL {
-
-/**
-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<Renderable *> RenderableSet;
-       typedef std::map<long, RenderableSet> InstanceMap;
-
-       InstanceMap renderables;
-
-public:
-       virtual void add(Renderable &);
-       virtual void remove(Renderable &);
-
-       virtual void setup_frame() const;
-       virtual void finish_frame() const;
-
-       using Scene::render;
-       virtual void render(Renderer &, const Tag &tag = Tag()) const;
-};
-
-} // namespace GL
-} // namespace Msp
-
-#endif