void HudGaugeRadarDradis::pageIn() { bm_page_in_texture(xy_plane); bm_page_in_texture(xz_yz_plane); bm_page_in_texture(sweep_plane); bm_page_in_texture(target_brackets); bm_page_in_texture(unknown_contact_icon); }
/** * Page in debris bitmaps at level load */ void debris_page_in() { uint i; Debris_model = model_load( NOX("debris01.pof"), 0, NULL ); if (Debris_model >= 0) { polymodel * pm; pm = model_get(Debris_model); Debris_num_submodels = pm->n_models; } Debris_vaporize_model = model_load( NOX("debris02.pof"), 0, NULL ); for (i=0; i<Species_info.size(); i++ ) { species_info *species = &Species_info[i]; nprintf(( "Paging", "Paging in debris texture '%s'\n", species->debris_texture.filename)); species->debris_texture.bitmap_id = bm_load(species->debris_texture.filename); if (species->debris_texture.bitmap_id < 0) { Warning( LOCATION, "Couldn't load species %s debris\ntexture, '%s'\n", species->species_name, species->debris_texture.filename); } bm_page_in_texture(species->debris_texture.bitmap_id); } }
// level paging code void neb2_page_in() { int idx; // load in all nebula bitmaps if ( (The_mission.flags[Mission::Mission_Flags::Fullneb]) || Nebula_sexp_used ) { for (idx = 0; idx < Neb2_poof_count; idx++) { if ( (Neb2_poofs[idx] >= 0) && (Neb2_poof_flags & (1<<idx)) ) { bm_page_in_texture(Neb2_poofs[idx]); } } } }
// level paging code void neb2_page_in() { int idx; // load in all nebula bitmaps if ( (The_mission.flags & MISSION_FLAG_FULLNEB) || Nebula_sexp_used ) { for (idx = 0; idx < Neb2_poof_count; idx++) { if ( (Neb2_poofs[idx] >= 0) && (Neb2_poof_flags & (1<<idx)) ) { bm_page_in_texture(Neb2_poofs[idx]); } } } }
void shockwave_page_in() { uint i; // load in shockwaves for (i = 0; i < Shockwave_info.size(); i++) { if (Shockwave_info[i].bitmap_id >= 0) { bm_page_in_texture( Shockwave_info[i].bitmap_id, Shockwave_info[i].num_frames ); } else if (Shockwave_info[i].model_id >= 0) { // for a model we have to run model_load() on it again to make sure // that it's ref_count is sane for this mission int idx = model_load( Shockwave_info[i].filename, 0, NULL ); Assert( idx == Shockwave_info[i].model_id ); model_page_in_textures( Shockwave_info[i].model_id ); } } }
void particle_page_in() { bm_page_in_texture( Anim_bitmap_id_fire ); bm_page_in_texture( Anim_bitmap_id_smoke ); bm_page_in_texture( Anim_bitmap_id_smoke2 ); }
void BeamPiercingEffect::pageIn() { bm_page_in_texture(m_effectBitmap); }