projects
/
universe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update.
[universe.git]
/
universe.cc
diff --git
a/universe.cc
b/universe.cc
index
8dec7f5
..
6eca067
100644
(file)
--- a/
universe.cc
+++ b/
universe.cc
@@
-149,6
+149,7
@@
void Universe::draw(SimpleWindow *window) {
}
#endif
+#ifdef CAIRO_SUPPORT
void Universe::draw(Canvas *canvas) {
for(int n = 0; n < _nb_polygons; n++) {
if(_polygons[n]) {
@@
-162,6
+163,7
@@
void Universe::draw(Canvas *canvas) {
}
}
}
+#endif
void Universe::apply_gravity(scalar_t dt, scalar_t fx, scalar_t fy) {
for(int n = 0; n < _nb_polygons; n++)