]> git.tdb.fi Git - libs/gl.git/blob - source/renderable.h
Add a rendering supervisor class
[libs/gl.git] / source / renderable.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007, 2011  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_RENDERABLE_H_
9 #define MSP_GL_RENDERABLE_H_
10
11 #include <string>
12 #include "tag.h"
13
14 namespace Msp {
15 namespace GL {
16
17 class Renderer;
18
19 class Renderable
20 {
21 protected:
22         Renderable() { }
23 public:
24         virtual ~Renderable() { }
25
26         virtual void render(const Tag & = Tag()) const;
27         virtual void render(Renderer &, const Tag & = Tag()) const;
28 };
29
30 } // namespace Msp
31 } // namespace GL
32
33 #endif