MCPcopy Create free account
hub / github.com/ZDoom/Raze / InitTextures

Function InitTextures

source/core/gamecontrol.cpp:972–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970//==========================================================================
971
972static void InitTextures(TArray<GrpEntry>& usedgroups)
973{
974 voxInit();
975
976 TexMan.usefullnames = true;
977 TexMan.Init();
978 TexMan.AddTextures([]() {}, [](BuildInfo&) {});
979 StartWindow->Progress();
980
981 TArray<FString> addArt;
982 for (auto& grp : usedgroups)
983 {
984 for (auto& art : grp.FileInfo.loadart)
985 {
986 addArt.Push(art);
987 }
988 }
989 if (userConfig.AddArt) for (auto& art : *userConfig.AddArt)
990 {
991 addArt.Push(art);
992 }
993 InitArtFiles(addArt);
994
995 ConstructTileset();
996 InitFont(); // InitFonts may only be called once all texture data has been initialized.
997
998 lookups.postLoadTables();
999 highTileSetup();
1000 lookups.postLoadLookups();
1001 SetupFontSubstitution();
1002 V_LoadTranslations(); // loading the translations must be delayed until the palettes have been fully set up.
1003 UpdateUpscaleMask();
1004}
1005
1006//==========================================================================
1007//

Callers 1

RunGameFunction · 0.85

Calls 14

voxInitFunction · 0.85
InitArtFilesFunction · 0.85
ConstructTilesetFunction · 0.85
InitFontFunction · 0.85
highTileSetupFunction · 0.85
SetupFontSubstitutionFunction · 0.85
V_LoadTranslationsFunction · 0.85
UpdateUpscaleMaskFunction · 0.85
AddTexturesMethod · 0.80
postLoadTablesMethod · 0.80
postLoadLookupsMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected