]> git.tdb.fi Git - libs/gl.git/blobdiff - source/simplescene.h
Notify Renderables about the start and end of a frame
[libs/gl.git] / source / simplescene.h
index b28b5c0ce12e628d4bfb1b1b1dbe7550746a7658..be86285bba84b21ea25f98aad1d3f51954a165b1 100644 (file)
@@ -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_
 
@@ -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