X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gate.h;h=201187cfbc9ee32944bde7ba1c27fa674d0a2f3a;hb=874c9d7e6ee2d826f9eb34518e8163283439c38e;hp=b45c70d86c0f1ce3efb3896d1fa11dd79a3a97cc;hpb=2dd61c7f0185ec525658ca398801f46e6adccf23;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gate.h b/world_gate.h index b45c70d..201187c 100644 --- a/world_gate.h +++ b/world_gate.h @@ -11,21 +11,22 @@ struct world_gates{ glmesh mesh; - mdl_submesh sm_surface, sm_marker[4]; + mdl_submesh sm_surface, sm_marker[4], sm_icosphere; 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_inside, +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, int layer_depth ); -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 int gate_intersect( ent_gate *gate, v3f pos, v3f last ); +static u32 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 ); #endif /* WORLD_GATE_H */