| 11 | |
| 12 | |
| 13 | int 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 | |
| 28 | int ModelManager::SetMisc(int modelid, float scale, int shadeoff, float zadd, float yoffset, int flags) |
| 29 | { |
no test coverage detected