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

Method ScenePostRender

src/SB/Game/zNPCMgr.cpp:530–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530void zNPCMgr::ScenePostRender()
531{
532 xLightKit_Enable(globals.player.ent.lightKit, globals.currWorld);
533 _SDRenderState old_rendstat = zRenderStateCurrent();
534 zRenderState(SDRS_NPCVisual);
535 for (int i = 0; i < npclist.cnt; i++)
536 {
537 zNPCCommon* npc = (zNPCCommon*)npclist.list[i];
538 if (npc->flg_xtrarend & 0x1)
539 {
540 npc->flg_xtrarend &= ~0x1;
541 }
542 else
543 {
544 continue;
545 }
546
547 if (npc->baseFlags & 0x40)
548 {
549 continue;
550 }
551
552 if (npc->model == NULL || !(npc->model->Flags & 0x400))
553 {
554 npc->RenderExtra();
555 }
556 }
557 xLightKit_Enable(0, globals.currWorld);
558 zRenderState(old_rendstat);
559}
560
561void zNPCMgr::ScenePostParticleRender()
562{

Callers 1

zNPCMgr_scenePostRenderFunction · 0.80

Calls 4

zRenderStateCurrentFunction · 0.85
zRenderStateFunction · 0.85
xLightKit_EnableFunction · 0.50
RenderExtraMethod · 0.45

Tested by

no test coverage detected