MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / LoadVisuals

Method LoadVisuals

ogsr_engine/Layers/xrRenderPC_R4/r4_loader.cpp:318–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void CRender::LoadVisuals(IReader* fs)
319{
320 u32 index = 0;
321 dxRender_Visual* V = nullptr;
322 ogf_header H;
323
324 IReader* chunk;
325
326 while ((chunk = fs->open_chunk(index)) != nullptr)
327 {
328 chunk->r_chunk_safe(OGF_HEADER, &H, sizeof(H));
329
330 V = Models->Instance_Create(H.type);
331 V->Load(nullptr, chunk, 0);
332 V->is_level_static = true;
333
334 Visuals.push_back(V);
335
336 chunk->close();
337
338 index++;
339 }
340
341 Msg("Loaded [%d] models from level.", Visuals.size());
342}
343
344void CRender::LoadLights(IReader* fs)
345{

Callers

nothing calls this directly

Calls 8

MsgFunction · 0.85
r_chunk_safeMethod · 0.80
Instance_CreateMethod · 0.80
open_chunkMethod · 0.45
LoadMethod · 0.45
push_backMethod · 0.45
closeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected