* -------------------------------------------------------
*/
+ void *heap;
char world_name[ 64 ];
+ enum world_status{
+ k_world_status_unloaded = 0,
+ k_world_status_loading = 1,
+ k_world_status_loaded = 2
+ }
+ status;
struct{
boxf depthbounds;
rb_object rb_geo;
};
-VG_STATIC struct world_global{
+struct world_global{
/*
* Allocated as system memory
* --------------------------------------------------------------------------
*/
- void *generic_heap;
+ void *heap;
/* rendering */
glmesh skydome;
}
text_particles[6*4];
u32 text_particle_count;
-
}
-world_global;
+static world_global;
VG_STATIC world_instance *get_active_world( void )
{
/* Allocate dynamic world memory arena */
u32 max_size = 76*1024*1024;
- world_global.generic_heap = vg_create_linear_allocator( vg_mem.rtmemory,
- max_size,
- VG_MEMORY_SYSTEM );
+ world_global.heap = vg_create_linear_allocator( vg_mem.rtmemory, max_size,
+ VG_MEMORY_SYSTEM );
}
typedef struct ent_call ent_call;