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

Function xLightKit_Enable

src/SB/Core/x/xLightKit.cpp:91–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void xLightKit_Enable(xLightKit* lkit, RpWorld* world)
92{
93 if (lkit != gLastLightKit)
94 {
95 int i;
96 if (gLastLightKit != NULL)
97 {
98 for (i = 0; i < gLastLightKit->lightCount; i++)
99 {
100 RpWorldRemoveLight(world, gLastLightKit->lightList[i].platLight);
101 }
102 }
103 gLastLightKit = lkit;
104 if (lkit != NULL)
105 {
106 iModelHack_DisablePrelight = 1;
107 for (i = 0; i < lkit->lightCount; i++)
108 {
109 RpWorldAddLight(world, lkit->lightList[i].platLight);
110 }
111 }
112 else
113 {
114 iModelHack_DisablePrelight = 0;
115 }
116 }
117}
118
119xLightKit* xLightKit_GetCurrent(RpWorld* world)
120{

Callers 15

render_ghostFunction · 0.50
renderMethod · 0.50
RenderMethod · 0.50
ScenePostRenderMethod · 0.50
updateMethod · 0.50
zEntPickup_RenderFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected