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

Function xLightKit_Destroy

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

Source from the content-addressed store, hash-verified

122}
123
124void xLightKit_Destroy(xLightKit* lkit)
125{
126 if (lkit == NULL)
127 {
128 return;
129 }
130
131 int i;
132 xLightKitLight* currLight = lkit->lightList;
133
134 for (i = 0; i < lkit->lightCount; currLight++, i++)
135 {
136 if (currLight->platLight != NULL)
137 {
138 _rwFrameSyncDirty();
139 RwFrame* tframe = (RwFrame*)(currLight->platLight->object).object.parent;
140 if (tframe != NULL)
141 {
142 _rwObjectHasFrameSetFrame(currLight->platLight, 0);
143 RwFrameDestroy(tframe);
144 }
145 RpLightDestroy(currLight->platLight);
146 currLight->platLight = 0;
147 }
148 }
149}

Callers 3

destroy_glow_lightMethod · 0.50
LightKit_UnloadFunction · 0.50
destroy_glow_lightFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected