projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Moved tinygettext to tinygettext.googlecode.com
[supertux.git]
/
src
/
video
/
renderer.hpp
diff --git
a/src/video/renderer.hpp
b/src/video/renderer.hpp
index
b04d0dc
..
2839492
100644
(file)
--- a/
src/video/renderer.hpp
+++ b/
src/video/renderer.hpp
@@
-55,6
+55,11
@@
public:
virtual void flip() = 0;
virtual void resize(int w, int h) = 0;
virtual void apply_config() = 0;
+
+ static Renderer* instance() { assert(instance_); return instance_; }
+
+protected:
+ static Renderer* instance_;
};
#endif