From 6b687b91e788b4e91a6ed30640a2477b9596b954 Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 26 Jan 2022 02:32:06 -0600 Subject: refactor: move drawing functions into drawing.h/drawing.c --- experimental/tectonics/world.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'experimental/tectonics/world.c') 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; in_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)); -} -- cgit v1.2.1