X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_skateshop.h;h=455c61df16c2e02dc687a64121f89d547708de68;hb=74b2136d5b41b18e2eec698f1fd11b503aa1100a;hp=23e43c07fb2f6196eaa2b5cfca78822ccd556431;hpb=6190deb68aa1c9e92ede62ea05c2a755bf5516de;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_skateshop.h b/ent_skateshop.h index 23e43c0..455c61d 100644 --- a/ent_skateshop.h +++ b/ent_skateshop.h @@ -13,12 +13,6 @@ struct{ v3f look_target; -#if 0 - ent_skateshop *ptr_ent; /* TODO */ - float factive; /* TODO */ - camera cam; -#endif - struct shop_view_slot{ u16 cache_id; float view_blend; @@ -38,10 +32,23 @@ struct{ u32 world_reg; } render; + + union { + struct gui_helper *helper_pick, *helper_toggle; + }; + + struct gui_helper *helper_browse; + + + addon_reg *reg_preview, *reg_loaded_preview; + GLuint tex_preview, tex_preview_err; } -static global_skateshop={.render={.reg_id=0xffffffff,.world_reg=0xffffffff}}; +static global_skateshop={ + .render={.reg_id=0xffffffff,.world_reg=0xffffffff} +}; -VG_STATIC void ent_skateshop_preupdate( ent_skateshop *shop ); -VG_STATIC void skateshop_render( ent_skateshop *shop ); +static void ent_skateshop_preupdate( ent_skateshop *shop, int active ); +static void skateshop_render( ent_skateshop *shop ); +static void skateshop_render_nonfocused( world_instance *world, camera *cam ); #endif /* ENT_SKATESHOP_H */