X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gate.h;h=a8decacf6dafebe29906103cc7e568d9222c6d60;hb=43dc3602effdf0af4f22ce78c0e76565c0be03e6;hp=bf23bebcf1e59fb1f2d9d3520be9f677ed563048;hpb=22f62f001f21d1b91fefd9fc495c122d9ddf205a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gate.h b/world_gate.h index bf23beb..a8decac 100644 --- a/world_gate.h +++ b/world_gate.h @@ -11,21 +11,20 @@ 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; static void world_gates_init(void); static void gate_transform_update( ent_gate *gate ); -static void world_link_nonlocal_async( void *payload, u32 size ); -static void world_unlink_nonlocal( world_instance *world ); static int render_gate( world_instance *world, world_instance *world_inside, - ent_gate *gate, camera *cam, int layer_depth ); + ent_gate *gate, camera *cam ); static int gate_intersect( ent_gate *gate, v3f pos, v3f last ); -static ent_gate *world_intersect_gates( world_instance *world, - 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 );