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

Function LoadSkin

source/common/models/model.cpp:116–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114//===========================================================================
115
116FTextureID LoadSkin(const char * path, const char * fn)
117{
118 FString buffer;
119
120 buffer.Format("%s%s", path, fn);
121
122 int texlump = FindGFXFile(buffer);
123 const char * const texname = texlump < 0 ? fn : fileSystem.GetFileFullName(texlump);
124 return TexMan.CheckForTexture(texname, ETextureType::Any, FTextureManager::TEXMAN_TryAny | FTextureManager::TEXMAN_ForceLookup);
125}
126
127//===========================================================================
128//

Callers 4

LoadMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85

Calls 4

FindGFXFileFunction · 0.85
GetFileFullNameMethod · 0.80
CheckForTextureMethod · 0.80
FormatMethod · 0.45

Tested by

no test coverage detected