]> git.tdb.fi Git - libs/gl.git/blob - source/renderable.h
Add virtual destructors to Renderable and Uniform
[libs/gl.git] / source / renderable.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  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 Renderable
18 {
19 protected:
20         Renderable() { }
21 public:
22         virtual ~Renderable() { }
23
24         virtual bool has_pass(const Tag &tag) const =0;
25         virtual void render(const Tag &tag=Tag()) const =0;
26 };
27
28 } // namespace Msp
29 } // namespace GL
30
31 #endif