Cleaning up for DL.
[universe.git] / universe.h
index b164d0b..07cf7f0 100644 (file)
@@ -31,7 +31,7 @@ public:
   // The destructor deletes all the added polygons
   ~Universe();
 
-  void initialize(Polygon *p);
+  void initialize_polygon(Polygon *p);
   void clear();
   void add_polygon(Polygon *p);
   bool collide(Polygon *p);
@@ -39,18 +39,23 @@ public:
   // Compute collisions between projections of the polygons on a few
   // axis to speed up the computation
   void compute_pseudo_collisions(int nb_axis, int *nb_colliding_axis);
+  void apply_gravity(scalar_t dt, scalar_t fx, scalar_t fy);
   void apply_collision_forces(scalar_t dt);
   bool update(scalar_t dt);
 
   Polygon *pick_polygon(scalar_t x, scalar_t y);
 
+#ifdef XFIG_SUPPORT
   void print_xfig(XFigTracer *tracer);
+#endif
 
 #ifdef X11_SUPPORT
   void draw(SimpleWindow *window);
 #endif
 
+#ifdef CAIRO_SUPPORT
   void draw(Canvas *canvas);
 };
+#endif
 
 #endif