[Top][All Lists]
[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); }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [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,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/worldmap manager.cxx,1.7,1.8 manager.hxx,1.7,1.8 worldmap.cxx,1.6,1.7 worldmap.hxx,1.6,1.7
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src action_button.cxx,1.10,1.11 action_button.hxx,1.9,1.10 button_panel.cxx,1.12,1.13 button_panel.hxx,1.10,1.11 client.cxx,1.19,1.20 client.hxx,1.13,1.14 exit_menu.cxx,1.5,1.6 exit_menu.hxx,1.6,1.7 game_session.cxx,1.7,1.8 game_session.hxx,1.6,1.7 gui_screen.cxx,1.6,1.7 gui_screen.hxx,1.7,1.8 hurry_up.cxx,1.1,1.2 hurry_up.hxx,1.4,1.5 input_debug_screen.cxx,1.1,1.2 input_debug_screen.hxx,1.1,1.2 option_menu.cxx,1.3,1.4 option_menu.hxx,1.4,1.5 pingus_counter.cxx,1.5,1.6 pingus_counter.hxx,1.6,1.7 pingus_menu_manager.cxx,1.10,1.11 pingus_menu_manager.hxx,1.10,1.11 playfield.cxx,1.19,1.20 playfield.hxx,1.10,1.11 screen.hxx,1.7,1.8 screen_manager.cxx,1.14,1.15 screen_manager.hxx,1.10,1.11 smallmap.cxx,1.12,1.13 smallmap.hxx,1.8,1.9 story.cxx,1.5,1.6 story.hxx,1.6,1.7 surface_button.cxx,1.10,1.11 surface_button.hxx,1.8,1.9 time_display.cxx,1.5,1.6 time_display.hxx,1.5,1.6 view.cxx,1.9,1.10
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/worldmap manager.cxx,1.7,1.8 manager.hxx,1.7,1.8 worldmap.cxx,1.6,1.7 worldmap.hxx,1.6,1.7
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src action_button.cxx,1.10,1.11 action_button.hxx,1.9,1.10 button_panel.cxx,1.12,1.13 button_panel.hxx,1.10,1.11 client.cxx,1.19,1.20 client.hxx,1.13,1.14 exit_menu.cxx,1.5,1.6 exit_menu.hxx,1.6,1.7 game_session.cxx,1.7,1.8 game_session.hxx,1.6,1.7 gui_screen.cxx,1.6,1.7 gui_screen.hxx,1.7,1.8 hurry_up.cxx,1.1,1.2 hurry_up.hxx,1.4,1.5 input_debug_screen.cxx,1.1,1.2 input_debug_screen.hxx,1.1,1.2 option_menu.cxx,1.3,1.4 option_menu.hxx,1.4,1.5 pingus_counter.cxx,1.5,1.6 pingus_counter.hxx,1.6,1.7 pingus_menu_manager.cxx,1.10,1.11 pingus_menu_manager.hxx,1.10,1.11 playfield.cxx,1.19,1.20 playfield.hxx,1.10,1.11 screen.hxx,1.7,1.8 screen_manager.cxx,1.14,1.15 screen_manager.hxx,1.10,1.11 smallmap.cxx,1.12,1.13 smallmap.hxx,1.8,1.9 story.cxx,1.5,1.6 story.hxx,1.6,1.7 surface_button.cxx,1.10,1.11 surface_button.hxx,1.8,1.9 time_display.cxx,1.5,1.6 time_display.hxx,1.5,1.6 view.cxx,1.9,1.10
- Index(es):