pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/gui component.hxx,1.9,1.10 gui_manage


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/gui component.hxx,1.9,1.10 gui_manager.cxx,1.11,1.12 gui_manager.hxx,1.9,1.10
Date: 5 Sep 2002 12:24:04 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/gui
In directory dark:/tmp/cvs-serv30676/gui

Modified Files:
        component.hxx gui_manager.cxx gui_manager.hxx 
Log Message:
- added GC to Screen and subclasses of it

Index: component.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/gui/component.hxx,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- component.hxx       23 Aug 2002 15:49:55 -0000      1.9
+++ component.hxx       5 Sep 2002 12:24:02 -0000       1.10
@@ -22,6 +22,8 @@
 
 #include "../pingus.hxx"
 
+class GraphicContext;
+
 namespace GUI
 {
   /** A component represents an area which recivies events in the GUI,
@@ -33,7 +35,7 @@
   public:
     Component () { }
     
-    virtual void draw () =0;
+    virtual void draw (GraphicContext& gc) =0;
     virtual void update (float delta) { UNUSED_ARG(delta);}
     
     virtual bool is_at (int x, int y) { UNUSED_ARG(x); UNUSED_ARG(y); return 
false; }

Index: gui_manager.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/gui/gui_manager.cxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- gui_manager.cxx     17 Aug 2002 01:02:38 -0000      1.11
+++ gui_manager.cxx     5 Sep 2002 12:24:02 -0000       1.12
@@ -42,12 +42,12 @@
 }
 
 void
-GUIManager::draw ()
+GUIManager::draw (GraphicContext& gc)
 {
   for (std::vector<Component*>::iterator i = components.begin (); 
        i != components.end (); ++i)
     {
-      (*i)->draw ();
+      (*i)->draw (gc);
     }
 }
 

Index: gui_manager.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/gui/gui_manager.hxx,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- gui_manager.hxx     23 Aug 2002 15:49:55 -0000      1.9
+++ gui_manager.hxx     5 Sep 2002 12:24:02 -0000       1.10
@@ -68,7 +68,7 @@
     GUIManager ();
     virtual ~GUIManager () {}
     
-    virtual void draw ();
+    virtual void draw (GraphicContext& gc);
     virtual void update (const GameDelta& delta);
     virtual void update (float delta) { UNUSED_ARG (delta); }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]