summaryrefslogtreecommitdiff
path: root/experimental/tectonics/tectonics.h
blob: bbde9dd2fa9af6545c89cf88ae00176a45e993fb (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
#ifndef TECTONICS_H
#define TECTONICS_H

#include <stdlib.h>
#include <stdbool.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 run_world_step(struct world_t *world);

#endif