static void eir_gme_init_map(eir_gme_map_component_t * map) { if (map) { EIR_KER_INIT_ARRAY(map->layers); } }
// --------------------------------------------------------------------------- void eir_gfx_init_env(eir_gfx_env_t * gfx_env, int width, int height) { if (gfx_env) { EIR_KER_INIT_ARRAY(gfx_env->images); EIR_KER_INIT_ARRAY(gfx_env->textures); EIR_KER_INIT_ARRAY(gfx_env->groups); gfx_env->sorted_groups = 0; eir_gfx_init_texture(&gfx_env->text_texture); eir_gfx_init_image(&gfx_env->text_image); #ifdef EIR_DEBUG eir_gfx_init_group(&gfx_env->aabb_debug_group); #endif eir_gfx_init_group(&gfx_env->bar_group); } }
void eir_snd_init_env(eir_snd_env_t * env) { EIR_KER_LOG_MESSAGE("init sound env"); if (env) { EIR_KER_INIT_ARRAY(env->sounds); } }
void eir_gme_init_env(eir_gme_env_t * env) { EIR_KER_LOG_MESSAGE("init game env"); if (env) { EIR_KER_INIT_ARRAY(env->worlds); env->curr_world = 0; eir_gme_init_all_input_controller_buffer(env); } }
static void eir_gme_init_map_layer(eir_gme_map_layer_t * map_layer) { if (map_layer) { map_layer->position.x = 0.0f; map_layer->position.y = 0.0f; map_layer->col_count = 0; map_layer->row_count = 0; map_layer->tile_width = 0; map_layer->tile_height = 0; map_layer->group = 0; map_layer->batch = 0; EIR_KER_INIT_ARRAY(map_layer->tiles); } }
static void eir_gme_init_world(eir_gme_world_t * world) { if (world) { EIR_KER_INIT_ARRAY(world->entities_flags); EIR_KER_INIT_ARRAY(world->positions); EIR_KER_INIT_ARRAY(world->sizes); EIR_KER_INIT_ARRAY(world->sprites); EIR_KER_INIT_ARRAY(world->colors); EIR_KER_INIT_ARRAY(world->motion_params); EIR_KER_INIT_ARRAY(world->aabbs); EIR_KER_INIT_ARRAY(world->physics); EIR_KER_INIT_ARRAY(world->states); EIR_KER_INIT_ARRAY(world->fsms); EIR_KER_INIT_ARRAY(world->aabb_primitives); EIR_KER_INIT_ARRAY(world->keyboards); EIR_KER_INIT_ARRAY(world->pads); EIR_KER_INIT_ARRAY(world->maps); EIR_KER_INIT_ARRAY(world->map_layer_links); init_colliding_map_tile_array_array(&world->colliding_map_tile_array_array); eir_gme_init_camera(&world->camera); } }