X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fscene.h;h=639a467fa849cb526c19ac31744b957f820af7ea;hp=e3aa1fabb2cd5829e6567b706712b1580192b991;hb=HEAD;hpb=4edd75061a1e24572bd672fb72e1bc1838008ce7 diff --git a/source/scene.h b/source/scene.h deleted file mode 100644 index e3aa1fab..00000000 --- a/source/scene.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef MSP_GL_SCENE_H_ -#define MSP_GL_SCENE_H_ - -#include "renderable.h" - -namespace Msp { -namespace GL { - -class Culler; - -/** -Scenes are containers for other Renderables. This is a base class that can't -be instantiated. At the moment the available Scene types are SimpleScene, -InstancedScene and OrderedScene. -*/ -class Scene: public Renderable -{ -protected: - std::list cullers; - - Scene() { } -public: - virtual ~Scene() { } - - virtual void add(const Renderable &) = 0; - virtual void remove(const Renderable &) = 0; - - void add_culler(Culler &); - void remove_culler(Culler &); - - using Renderable::render; - virtual void render(const Tag & = Tag()) const; - -protected: - virtual void setup_cullers(const Renderer &) const; - virtual bool cull(const Renderer &, const Renderable &) const; -}; - -} // namespace GL -} // namespace Msp - -#endif