src/Graphics/Display.hh
branchnew_graphics
changeset 413 7dddc163489a
parent 412 721c60072091
child 414 cede5463b845
--- a/src/Graphics/Display.hh	Wed Jan 21 23:07:22 2009 +0200
+++ b/src/Graphics/Display.hh	Wed Jan 21 23:25:29 2009 +0200
@@ -22,7 +22,7 @@
 
 }
 
-#include "Drawable.hh"
+#include "View.hh"
 #include "../Timer.hh"
 
 #include <ClanLib/display.h>
@@ -53,7 +53,7 @@
     /**
      * What we draw
      */
-    Drawable *target;
+    View *current_view;
 
     CL_SlotContainer slots;
 
@@ -85,11 +85,9 @@
     }
 
     /**
-     * Set draw target
+     * Display the given view, this will initialize resize it to the right size
      */
-    void setTarget (Drawable *target) {
-        this->target = target;
-    }
+    void setView (View *view);
 
     /**
      * Shift back and forth between fullscreen and windowed mode, retaining resolutions