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

Function iLightSetPos

src/SB/Core/gc/iLight.cpp:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void iLightSetPos(iLight* light, xVec3* pos)
104{
105 RwFrame* f = RpLightGetFrame(light->hw);
106 RwMatrix* m = RwFrameGetMatrix(f);
107
108 RwMatrixGetPos(m)->x = pos->x;
109 RwMatrixGetPos(m)->y = pos->y;
110 RwMatrixGetPos(m)->z = pos->z;
111
112 RwMatrixUpdate(m);
113
114 RwFrameUpdateObjects(f);
115}
116
117void iLightDestroy(iLight* light)
118{

Callers 1

zLightUpdateFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected