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

Function LoadVoxelModels

source/core/rendering/hw_voxels.cpp:94–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void LoadVoxelModels()
95{
96 for (int i = 0; i < MAXVOXELS; i++)
97 {
98 int lumpnum = voxlumps[i];
99 if (lumpnum > 0)
100 {
101 voxmodels[i] = voxload(lumpnum);
102 if (voxmodels[i])
103 voxmodels[i]->scale = voxscale[i];
104 else
105 Printf("Unable to load voxel from %s\n", fileSystem.GetFileFullPath(lumpnum).c_str());
106 }
107 else
108 {
109 auto index = fileSystem.FindResource(i, "KVX");
110 if (index >= 0)
111 {
112 voxmodels[i] = voxload(index);
113 }
114 }
115 }
116}
117

Callers 1

RunGameFunction · 0.85

Calls 5

voxloadFunction · 0.85
PrintfFunction · 0.85
c_strMethod · 0.80
GetFileFullPathMethod · 0.80
FindResourceMethod · 0.80

Tested by

no test coverage detected