void R_InitData(void) { lprintf(LO_INFO, "Textures "); R_InitTextures(); lprintf(LO_INFO, "Flats "); R_InitFlats(); lprintf(LO_INFO, "Sprites "); R_InitSpriteLumps(); if (default_translucency) // killough 3/1/98 R_InitTranMap(1); // killough 2/21/98, 3/6/98 R_InitColormaps(); // killough 3/20/98 }
// // R_InitData // // Locates all the lumps // that will be used by all views // Must be called after W_Init. // void R_InitData() { static bool firsttime = true; P_InitSkins(); R_InitColormaps(); // killough 3/20/98 R_ClearSkyTextures(); // haleyjd 8/30/02 R_InitTextures(); R_InitSpriteLumps(); if(general_translucency) // killough 3/1/98, 10/98 { R_InitTranMap(true); // killough 2/21/98, 3/6/98 R_InitSubMap(true); } else { // sf: fill in dots missing from no translucency build for(int i = 0; i < 8; i++) V_LoadingIncrease(); // 8 '.'s } // haleyjd 11/21/09: first time through here, set DOOM thingtype translucency // styles. Why only the first time? We don't need to do this if R_Init is // invoked through adding a new wad file. // haleyjd 01/28/10: also initialize tantoangle_acc table if(firsttime) { Table_InitTanToAngle(); R_DoomTLStyle(); firsttime = false; } // process SMMU Doom->Doom2 texture conversion table R_LoadDoom1(); }