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

Method LoadModel

source/core/models/modeldata.cpp:13–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13int ModelManager::LoadModel(const char* fn)
14{
15 unsigned modelid = FindModel(nullptr, fn, true);
16
17 if (modelid == ~0u)
18 return -1;
19
20 // Note that the descriptor table may contain the same model multiple times!
21
22 int mdid = modelDescs.Reserve(1);
23 modelDescs.Last() = {};
24 modelDescs.Last().modelID = modelid;
25 return mdid;
26}
27
28int ModelManager::SetMisc(int modelid, float scale, int shadeoff, float zadd, float yoffset, int flags)
29{

Callers 2

parseDefineModelFunction · 0.80
parseModelFunction · 0.80

Calls 2

FindModelFunction · 0.85
ReserveMethod · 0.80

Tested by

no test coverage detected