polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit 09c34ba0b58bea695fd8975f992d1312aa57519c
parent b380877091f7ed31136eac2701161dda4b47f124
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 25 Apr 2018 20:56:11 -0700

consistent sample points

Diffstat:
Msrc/terrain.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/terrain.c b/src/terrain.c @@ -98,7 +98,6 @@ terrain_create(struct terrain *terrain, struct perlin_settings *perlin) { first = 0; - delaunay2d_t *del = delaunay2d_from(points, num_verts); tri_delaunay2d_t *tri = tri_delaunay2d_from(del); @@ -121,7 +120,7 @@ terrain_create(struct terrain *terrain, struct perlin_settings *perlin) { free(normals); } -void -terrain_destroy(struct terrain *terrain) { + +void terrain_destroy(struct terrain *terrain) { destroy_buffer_geometry(&terrain->geom); }