summaryrefslogtreecommitdiff
path: root/experimental/tectonics/tectonics.h
blob: de5b18ad779115bd599b63d20b1667414be8a5cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef TECTONICS_H
#define TECTONICS_H

#include <stdlib.h>
#include <stdbool.h>
#include <cairo.h>

#include "geometry.h"

struct world_t {
   struct point_t *points;
   struct quadtree_node_t tree;
   int n_points;
};

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 *
 * worlds
 *
 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */

void create_world(struct world_t *world, int n_points);
void free_world(struct world_t *world);
void render_world(cairo_t *cr, struct world_t *world);
void run_world_step(struct world_t *world);

#endif