X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gate.h;h=89040fd811583e7812fa6faaa54e133f862ed332;hb=4b8fc63f926737ca0593a4e471550f9f4995c538;hp=4defb75ac198ee07d5fe398d75af61a6f6292f4e;hpb=342fcbf6fda017bdd38d56ce0fa7c9e59e589f3b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gate.h b/world_gate.h index 4defb75..89040fd 100644 --- a/world_gate.h +++ b/world_gate.h @@ -5,12 +5,14 @@ #ifndef WORLD_GATE_H #define WORLD_GATE_H +#include "camera.h" #include "world.h" #include "shaders/model_gate.h" struct world_gates{ glmesh mesh; mdl_submesh sm_surface, sm_marker[4]; + camera cam; } static world_gates; @@ -18,12 +20,13 @@ 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, +VG_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 ); +VG_STATIC void ent_gate_call( world_instance *world, ent_call *call ); #endif /* WORLD_GATE_H */