update helpers/location to 'frosted' ui
[carveJwlIkooP6JGAAIwe30JlM.git] / skaterift.h
index bfcaffbb8387e9208be86f681a4362bc03a15ca8..4ea1b888edacf43d1030594219f907cb07976bff 100644 (file)
@@ -1,37 +1,40 @@
-#ifndef SKATERIFT_H
-#define SKATERIFT_H
-
+#pragma once
 #define SKATERIFT_APPID 2103940
+#include "vg/vg_engine.h"
+#include "vg/vg_camera.h"
 
-#define VG_TIMESTEP_FIXED (1.0/60.0)
-#define VG_3D
-#define VG_GAME
-#define VG_MSG_V1_SUPPORT
-#define VG_LOG_SOURCE_INFO
-#include "vg/vg.h"
-#include "world.h"
-#include "addon.h"
+enum skaterift_rt 
+{
+   k_skaterift_rt_workshop_preview,
+   k_skaterift_rt_server_status,
+   k_skaterift_rt_max
+};
 
-struct{
-   enum async_operation{
+struct skaterift_globals
+{
+   enum async_operation
+   {
       k_async_op_none,
       k_async_op_clientloading,
-      k_async_op_world_scan,
-      k_async_op_world_load_preview,
-      k_async_op_board_scan,
-      k_async_op_player_scan,
-      k_async_op_board_load,
-      k_async_op_write_savedata,
-      k_workshop_form_op_loading_model,
-      k_workshop_form_op_downloading_submission,
-      k_workshop_form_op_publishing_update,
    }
    op;
-}
-static skaterift = { .op = k_async_op_clientloading };
 
-/* Skaterift api */
-static void skaterift_change_world_start( void );
-static int  skaterift_change_world_command( int argc, const char *argv[] );
+   f32 time_rate;
+   vg_camera cam;
+   
+   enum skaterift_activity {
+      k_skaterift_default    = 0x00,
+      k_skaterift_replay     = 0x01,
+      k_skaterift_ent_focus  = 0x02,
+      k_skaterift_menu       = 0x04,
+      k_skaterift_world_map  = 0x08,
+   }
+   activity;
+   GLuint rt_textures[k_skaterift_rt_max];
 
-#endif /* SKATERIFT_H */
+   u32 achievements;
+   int demo_mode;
+
+   const char *hub_world;
+}
+extern skaterift;