add skybox editor
[carveJwlIkooP6JGAAIwe30JlM.git] / world_gate.h
index 6f384400b7962beafeeabc2adf7705a448a38d94..151e428ff7be1172dd9d761572ac2cc097a91f33 100644 (file)
@@ -13,21 +13,25 @@ struct world_gates{
    glmesh mesh;
    mdl_submesh sm_surface, sm_marker[4];
    camera cam;
+
+   v3f userportal_co;
 }
 static world_gates;
 
-VG_STATIC void world_gates_init(void);
-VG_STATIC void gate_transform_update( ent_gate *gate );
-VG_STATIC void world_link_nonlocal_async( void *payload, u32 size );
-VG_STATIC void world_unlink_nonlocal( world_instance *world );
-VG_STATIC int render_gate( world_instance *world, world_instance *world_inside,
-                           ent_gate *gate, camera *cam, int layer_depth );
+static void world_gates_init(void);
+static void gate_transform_update( ent_gate *gate );
+static int render_gate( world_instance *world, world_instance *world_inside,
+                           ent_gate *gate, camera *cam );
+
+static int gate_intersect( ent_gate *gate, v3f pos, v3f last );
+static u32 world_intersect_gates( world_instance *world, v3f pos, v3f last );
 
-VG_STATIC int gate_intersect( ent_gate *gate, v3f pos, v3f last );
-VG_STATIC ent_gate *world_intersect_gates( world_instance *world,
-                                           v3f pos, v3f last );
+static void ent_gate_call( world_instance *world, ent_call *call );
+static void ent_gate_get_mdl_mtx( ent_gate *gate, m4x3f mmdl );
 
-VG_STATIC void ent_gate_call( world_instance *world, ent_call *call );
-VG_STATIC void ent_gate_get_mdl_mtx( ent_gate *gate, m4x3f mmdl );
+static void world_link_nonlocal_async( void *payload, u32 size );
+static void world_unlink_nonlocal( world_instance *world );
+static void render_gate_unlinked( world_instance *world,
+                                  ent_gate *gate, camera *cam );
 
 #endif /* WORLD_GATE_H */