X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsimplescene.h;h=deba4d5f8877b872aa6d3be5dcc5cb7eecf7c0e1;hb=d147aa8f56e6a60d80f628ffeedf16bc99b588d3;hp=b28b5c0ce12e628d4bfb1b1b1dbe7550746a7658;hpb=9addd3d476245415244e59333a36a8fc0eae42bf;p=libs%2Fgl.git diff --git a/source/simplescene.h b/source/simplescene.h index b28b5c0c..deba4d5f 100644 --- a/source/simplescene.h +++ b/source/simplescene.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_SIMPLESCENE_H_ #define MSP_GL_SIMPLESCENE_H_ @@ -19,7 +12,7 @@ The simplest possible Scene. Rendering order is unspecified. */ class SimpleScene: public Scene { -private: +protected: typedef std::set RenderableSet; RenderableSet renderables; @@ -28,7 +21,11 @@ public: virtual void add(const Renderable &); virtual void remove(const Renderable &); - virtual void render(const Tag &tag = Tag()) const; + virtual void setup_frame() const; + virtual void finish_frame() const; + + using Scene::render; + virtual void render(Renderer &, const Tag & = Tag()) const; }; } // namespace GL