pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src/worldobjs starfield_background.cxx,1.


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/worldobjs starfield_background.cxx,1.1,1.2 starfield_background.hxx,1.1,1.2 starfield_background_stars.cxx,1.1,1.2 starfield_background_stars.hxx,1.1,1.2
Date: 24 Sep 2002 14:51:38 -0000

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

Modified Files:
        starfield_background.cxx starfield_background.hxx 
        starfield_background_stars.cxx starfield_background_stars.hxx 
Log Message:
- some release preperations

Index: starfield_background.cxx
===================================================================
RCS file: 
/usr/local/cvsroot/Games/Pingus/src/worldobjs/starfield_background.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- starfield_background.cxx    16 Sep 2002 20:52:22 -0000      1.1
+++ starfield_background.cxx    24 Sep 2002 14:51:36 -0000      1.2
@@ -58,15 +58,13 @@
 }
 
 void 
-StarfieldBackground::draw_offset (int x_of, int y_of, float s)
+StarfieldBackground::draw (GraphicContext& gc)
 {
   for (std::vector<StarfieldBackgroundStars*>::iterator i = stars.begin();
        i != stars.end(); ++i)
     {
-      (*i)->draw_offset(x_of, y_of);
+      (*i)->draw (gc);
     }
-
-  UNUSED_ARG(s);
 }
 
 } // namespace WorldObjs

Index: starfield_background.hxx
===================================================================
RCS file: 
/usr/local/cvsroot/Games/Pingus/src/worldobjs/starfield_background.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- starfield_background.hxx    16 Sep 2002 20:52:22 -0000      1.1
+++ starfield_background.hxx    24 Sep 2002 14:51:36 -0000      1.2
@@ -20,6 +20,7 @@
 #ifndef HEADER_PINGUS_WORLDOJBS_STARFIELD_BACKGROUND_HXX
 #define HEADER_PINGUS_WORLDOBJS_STARFIELD_BACKGROUND_HXX
 
+#include "../graphic_context.hxx"
 #include "../worldobj.hxx"
 
 namespace WorldObjsData {
@@ -44,7 +45,7 @@
   float get_z_pos() const { return -10; }
 
   void update (float delta);
-  void draw_offset (int x_of, int y_of, float s = 1.0);
+  void draw (GraphicContext& gc);
   
 private:
   StarfieldBackground (const StarfieldBackground&);

Index: starfield_background_stars.cxx
===================================================================
RCS file: 
/usr/local/cvsroot/Games/Pingus/src/worldobjs/starfield_background_stars.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- starfield_background_stars.cxx      16 Sep 2002 20:52:22 -0000      1.1
+++ starfield_background_stars.cxx      24 Sep 2002 14:51:36 -0000      1.2
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include "../graphic_context.hxx"
 #include "../world.hxx"
 #include "../pingus_resource.hxx"
 #include "starfield_background_stars.hxx"
@@ -79,10 +80,9 @@
 }
 
 void
-StarfieldBackgroundStars::draw_offset (int x_of, int y_of, float s)
+StarfieldBackgroundStars::draw (GraphicContext& gc)
 {
-  sur.put_screen(static_cast<int>(x_pos + x_of), static_cast<int>(y_pos + 
y_of));
-  UNUSED_ARG(s);
+  gc.draw(sur, CL_Vector (x_pos, y_pos));
 }
 
 } // namespace WorldObjs

Index: starfield_background_stars.hxx
===================================================================
RCS file: 
/usr/local/cvsroot/Games/Pingus/src/worldobjs/starfield_background_stars.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- starfield_background_stars.hxx      16 Sep 2002 20:52:22 -0000      1.1
+++ starfield_background_stars.hxx      24 Sep 2002 14:51:36 -0000      1.2
@@ -52,7 +52,7 @@
 
   void init ();
   void update (float delta);
-  void draw_offset (int x_of, int y_of, float s = 1.0);  
+  void draw (GraphicContext& gc);
 
 private:
   StarfieldBackgroundStars (const StarfieldBackgroundStars&);





reply via email to

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