summaryrefslogtreecommitdiff
path: root/experimental/tectonics/world.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-01-26 02:32:06 -0600
committersanine <sanine.not@pm.me>2022-01-26 02:32:06 -0600
commit6b687b91e788b4e91a6ed30640a2477b9596b954 (patch)
treebe0ebf99cd8ff3776f59a33b42ef22ab07c71a6c /experimental/tectonics/world.c
parent672819693ddf1d203c304697b63f44059cff09b6 (diff)
refactor: move drawing functions into drawing.h/drawing.c
Diffstat (limited to 'experimental/tectonics/world.c')
-rw-r--r--experimental/tectonics/world.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/experimental/tectonics/world.c b/experimental/tectonics/world.c
index 5aead24..5aa485c 100644
--- a/experimental/tectonics/world.c
+++ b/experimental/tectonics/world.c
@@ -131,24 +131,3 @@ void free_world(struct world_t *world)
}
free(world->points);
}
-
-
-/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
-
-void render_world(cairo_t *cr, struct world_t *world)
-{
- int width, height;
- get_cairo_size(cr, &width, &height);
- double r = ((double)width) / (100*sqrt(world->n_points));
- cairo_set_source_rgba(cr, 1, 0, 0, 1);
-
- for (int i=0; i<world->n_points; i++) {
- struct point_t *pt = world->points + i;
- double xc = pt->x * width;
- double yc = pt->y * height;
- cairo_arc(cr, xc, yc, r, 0, 2*M_PI);
- cairo_stroke(cr);
- }
-
- //draw_quadtree(cr, &(world->tree));
-}