MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zLOD_Get

Function zLOD_Get

src/SB/Game/zLOD.cpp:246–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246zLODTable* zLOD_Get(xEnt* ent)
247{
248 if (!ent->model)
249 {
250 return 0;
251 }
252
253 for (S32 i = 0; i < sTableCount; i++)
254 {
255 if (sTableList[i].baseBucket != NULL)
256 {
257 if ((*sTableList[i].baseBucket)->OriginalData == ent->model->Data)
258 {
259 return &sTableList[i];
260 }
261 }
262 }
263 return 0;
264}
265
266// WIP
267void zLOD_UseCustomTable(xEnt* ent, zLODTable* lod)

Callers 3

zSceneSetupFunction · 0.70
refresh_cull_distMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected