X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=universe.h;h=f87f112b19df77c50348cb0d13eb77dace74933e;hb=1772e738e79ad97347552ea29ee041440d9e60cb;hp=77980b8310fe7008b6e04ec2b6d4c1df48ad019e;hpb=a845456cf185afc67d4fdb3aee7fed27c488b4fe;p=universe.git diff --git a/universe.h b/universe.h index 77980b8..f87f112 100644 --- a/universe.h +++ b/universe.h @@ -8,16 +8,19 @@ #include #include +#include "misc.h" +#include "polygon.h" + +#ifdef X11_SUPPORT +#include "simple_window.h" +#endif + #ifdef CAIRO_SUPPORT #include #endif using namespace std; -#include "misc.h" -#include "simple_window.h" -#include "polygon.h" - class Universe { scalar_t _xmax, _ymax; public: @@ -45,7 +48,10 @@ public: Polygon *pick_polygon(scalar_t x, scalar_t y); void print_xfig(XFigTracer *tracer); + +#ifdef X11_SUPPORT void draw(SimpleWindow *window); +#endif #ifdef CAIRO_SUPPORT void draw(cairo_t *context_resource);