fixed recursive build script
[carveJwlIkooP6JGAAIwe30JlM.git] / common.h
index fa22207f3e2eb8c7709550f1b3d35d3a757e5b4b..a36dc0a2460528ff70aad8c2fb1d9d7da0d9fd3e 100644 (file)
--- a/common.h
+++ b/common.h
@@ -1,32 +1,15 @@
+/*
+ * Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved
+ */
+
 #ifndef COMMON_H
 #define COMMON_H
 
+#define VG_TIMESTEP_FIXED (1.0/60.0)
 #define VG_3D
 #define VG_FRAMEBUFFER_RESIZE 1
 #include "vg/vg.h"
 
-/* TODO: he needs a home somewhere */
-static float ktimestep = 1.0f/60.0f;
-
-/* TODO: he needs a home somewhere */
-enum classtype
-{
-   k_classtype_none = 0,
-   k_classtype_gate = 1,
-   k_classtype_block = 2,
-   k_classtype_spawn = 3,
-   k_classtype_water = 4,
-   k_classtype_car_path = 5,
-   k_classtype_instance = 6,
-   k_classtype_capsule = 7,
-   k_classtype_route_node = 8,
-   k_classtype_route = 9,
-   k_classtype_bone = 10,
-   k_classtype_skeleton = 11,
-   k_classtype_skin = 12
-};
-
-/* TODO: he needs a home somewhere */
 typedef struct ray_hit ray_hit;
 struct ray_hit
 {
@@ -35,19 +18,6 @@ struct ray_hit
    v3f pos, normal;
 };
 
-/* TODO: he needs a home somewhere */
-static void eval_bezier_time( v3f p0, v3f p1, v3f h0, v3f h1, float t, v3f p )
-{
-   float tt = t*t,
-         ttt = tt*t;
-
-   v3_muls( p1, ttt, p );
-   v3_muladds( p, h1, 3.0f*tt  -3.0f*ttt, p );
-   v3_muladds( p, h0, 3.0f*ttt -6.0f*tt  +3.0f*t, p );
-   v3_muladds( p, p0, 3.0f*tt  -ttt -3.0f*t +1.0f, p );
-}
-
 static int network_scores_updated = 0;
 
-
 #endif /* COMMON_H */