src/Graphics.hh
changeset 408 e6cfc44266af
parent 394 82def222fe7d
child 409 1a03ff151abc
--- a/src/Graphics.hh	Tue Jan 20 23:24:04 2009 +0200
+++ b/src/Graphics.hh	Tue Jan 20 23:30:18 2009 +0200
@@ -2,6 +2,18 @@
 #define GRAPHICS_HH
 
 #include "GraphicsPointer.hh"
+#include "Types.hh"
+
+/** 
+ * Parameters used by Graphics
+ */
+struct GraphicsConfiguration {
+    /** Initial resolution to use */
+    PixelCoordinate resolution;
+    
+    /* Use fullscreen mode at startup */
+    bool fullscreen;
+}; 
 
 #include "GameState.hh"
 #include "Input.hh"
@@ -75,7 +87,7 @@
     /**
      *
      */
-    Graphics (Engine &engine, GameState &state, PixelCoordinate resolution, bool fullscreen);
+    Graphics (Engine &engine, GameState &state, const GraphicsConfiguration &config);
     
     /**
      * Returns a CL_Font that can be used for drawing text