src/Engine.hh
changeset 218 86d22fe82b30
parent 186 0738f2949a2b
child 233 ff4ecea83cf5
--- a/src/Engine.hh	Sat Dec 06 13:58:11 2008 +0000
+++ b/src/Engine.hh	Sat Dec 06 14:20:01 2008 +0000
@@ -1,7 +1,7 @@
 #ifndef ENGINE_HH
 #define ENGINE_HH
 
-// XXX: forward-declare Engine for other components
+// forward-declare
 class Engine;
 
 #include "GameState.hh"
@@ -25,6 +25,9 @@
 
         // to exit the mainloop
         bool is_running;
+
+        // global...
+        static bool _graphicsEnabled;
     
     public:    
         // default constructor
@@ -46,6 +49,9 @@
         void stop (void);
 
     public:
+        // avoid loading resources for graphics if we're not going to use them
+        static bool graphicsEnabled (void);
+
         // logging utility
         static Logger log (enum LogLevel level, const char *type);