From 4597c723c8dc1ab83fe23d7b330cd2ce974cba5d Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 8 May 2011 20:57:24 +0200 Subject: Halve triangles/vertices per node, assume width and height is always 1. --- terrain.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'terrain.h') diff --git a/terrain.h b/terrain.h index 79a615e..b391f94 100644 --- a/terrain.h +++ b/terrain.h @@ -15,15 +15,14 @@ class Terrain { struct Node { Chunk *chunk; - float x, y, width, height; - float vertex_array[15]; + float x, y; + float vertex_array[12]; - Node(Chunk *chunk, float x, float y, float width, float height); + Node(Chunk *chunk, float x, float y); virtual ~Node(); float distance(float px, float pz); void fill(); - void draw(); void draw_grid(); void draw_normal(); float get_height(float px, float py); -- cgit v1.2.3