projects
/
universe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetics + started to prepare use without X11.
[universe.git]
/
universe.h
diff --git
a/universe.h
b/universe.h
index
77980b8
..
f87f112
100644
(file)
--- a/
universe.h
+++ b/
universe.h
@@
-8,16
+8,19
@@
#include <iostream>
#include <cmath>
#include <iostream>
#include <cmath>
+#include "misc.h"
+#include "polygon.h"
+
+#ifdef X11_SUPPORT
+#include "simple_window.h"
+#endif
+
#ifdef CAIRO_SUPPORT
#include <cairo.h>
#endif
using namespace std;
#ifdef CAIRO_SUPPORT
#include <cairo.h>
#endif
using namespace std;
-#include "misc.h"
-#include "simple_window.h"
-#include "polygon.h"
-
class Universe {
scalar_t _xmax, _ymax;
public:
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);
Polygon *pick_polygon(scalar_t x, scalar_t y);
void print_xfig(XFigTracer *tracer);
+
+#ifdef X11_SUPPORT
void draw(SimpleWindow *window);
void draw(SimpleWindow *window);
+#endif
#ifdef CAIRO_SUPPORT
void draw(cairo_t *context_resource);
#ifdef CAIRO_SUPPORT
void draw(cairo_t *context_resource);