Moved tinygettext to tinygettext.googlecode.com
[supertux.git] / src / video / renderer.hpp
index b04d0dc..2839492 100644 (file)
@@ -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