X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_miniworld.h;h=b1aed55bf12d73b2717e8ff51d35e6ab827fb66e;hb=5f6a4f9df6c8accc89f1920bfe9ace3cbac4c4b6;hp=e963a09f549ce63dc822b6f0fa02767b691c7075;hpb=a109f126d8adab622e38fbcc2d4281e75255246a;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_miniworld.h b/ent_miniworld.h index e963a09..b1aed55 100644 --- a/ent_miniworld.h +++ b/ent_miniworld.h @@ -1,20 +1,18 @@ -#ifndef ENT_MINIWORLD_H -#define ENT_MINIWORLD_H - +#pragma once #include "entity.h" -struct { +struct global_miniworld +{ ent_miniworld *active; int transition; f32 t; m4x3f mmdl; - camera cam; + vg_camera cam; } -static global_miniworld; - -static void ent_miniworld_call( world_instance *world, ent_call *call ); -static void ent_miniworld_render( world_instance *host_world, camera *cam ); -static void ent_miniworld_goback(void); +extern global_miniworld; -#endif /* ENT_MINIWORLD_H */ +void ent_miniworld_call( world_instance *world, ent_call *call ); +void ent_miniworld_render( world_instance *host_world, vg_camera *cam ); +void ent_miniworld_goback(void); +void ent_miniworld_preupdate(void);