minor changes to be on track with vg revision
[carveJwlIkooP6JGAAIwe30JlM.git] / ent_skateshop.h
1 #ifndef ENT_SKATESHOP_H
2 #define ENT_SKATESHOP_H
3
4 #include "world.h"
5 #include "world_load.h"
6 #include "player.h"
7 #include "vg/vg_steam_remote_storage.h"
8 #include "workshop.h"
9 #include "addon.h"
10
11 #define SKATESHOP_VIEW_SLOT_MAX 5
12
13 struct{
14 v3f look_target;
15
16 struct shop_view_slot{
17 u16 cache_id;
18 float view_blend;
19 }
20 shop_view_slots[ SKATESHOP_VIEW_SLOT_MAX ];
21
22 u32 selected_world_id,
23 selected_board_id,
24 selected_player_id,
25 pointcloud_world_id;
26
27 struct {
28 const char *item_title, *item_desc;
29 u32 reg_id;
30
31 const char *world_title, *world_loc;
32 u32 world_reg;
33 }
34 render;
35
36 union {
37 struct gui_helper *helper_pick, *helper_toggle;
38 };
39
40 struct gui_helper *helper_browse;
41
42
43 addon_reg *reg_preview, *reg_loaded_preview;
44 GLuint tex_preview;
45 }
46 static global_skateshop={
47 .render={.reg_id=0xffffffff,.world_reg=0xffffffff}
48 };
49
50 static void ent_skateshop_preupdate( ent_skateshop *shop, int active );
51 static void skateshop_render( ent_skateshop *shop );
52 static void skateshop_render_nonfocused( world_instance *world, camera *cam );
53
54 #endif /* ENT_SKATESHOP_H */