water splash
[carveJwlIkooP6JGAAIwe30JlM.git] / world.h
diff --git a/world.h b/world.h
index 007d6721b93a0cf5294487ec667f9ab604b2cc26..8779df9ef8790e7b0d6ad0dbd63960e38e759365 100644 (file)
--- a/world.h
+++ b/world.h
@@ -27,9 +27,15 @@ static int ray_world( v3f pos, v3f dir, ray_hit *hit );
 #include "shaders/fscolour.h"
 #include "shaders/alphatest.h"
 
-enum { k_max_ui_segments = 32 };
-enum { k_route_ui_max_verts = 2000 };
-enum { k_route_ui_max_indices = 3000 };
+enum { k_max_ui_segments = 8 };
+enum { k_max_ui_splits_per_segment = 16 };
+
+enum { k_max_ui_elements = k_max_ui_segments*k_max_ui_splits_per_segment };
+enum { k_max_element_verts = 10 };
+enum { k_max_element_indices = 20 };
+
+enum { k_route_ui_max_verts = k_max_ui_elements*k_max_element_verts };
+enum { k_route_ui_max_indices = k_max_ui_elements*k_max_element_indices };
 
 static struct gworld
 {
@@ -84,7 +90,7 @@ static struct gworld
             {
                float length;
                u32 vertex_start, vertex_count,
-                   index_start, index_count;
+                   index_start, index_count, notches;
             }
             segments[k_max_ui_segments];
 
@@ -98,6 +104,8 @@ static struct gworld
       }
       *routes;
 
+      double last_interaction;
+
       u32 route_count,
           route_cap;