]> git.tdb.fi Git - libs/gl.git/blob - source/renderable.h
Drop Id tags and copyright notices from files
[libs/gl.git] / source / renderable.h
1 #ifndef MSP_GL_RENDERABLE_H_
2 #define MSP_GL_RENDERABLE_H_
3
4 #include <string>
5 #include "tag.h"
6
7 namespace Msp {
8 namespace GL {
9
10 class Renderer;
11
12 class Renderable
13 {
14 protected:
15         Renderable() { }
16 public:
17         virtual ~Renderable() { }
18
19         /** Returns a key used for grouping Renderables in an InstanceScene. */
20         virtual long get_instance_key() const { return 0; }
21
22         virtual void render(const Tag & = Tag()) const;
23         virtual void render(Renderer &, const Tag & = Tag()) const;
24 };
25
26 } // namespace Msp
27 } // namespace GL
28
29 #endif