]> git.tdb.fi Git - libs/gl.git/blob - source/renderable.h
Allow Renderables in a Scene to specify ordering
[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 public:
20         virtual int get_order() const { return 0; }
21         virtual bool has_pass(const Tag &tag) const =0;
22
23         virtual void render(const Tag &tag=Tag()) const =0;
24 };
25
26 } // namespace Msp
27 } // namespace GL
28
29 #endif