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

Function xFXInit

src/SB/Core/x/xFX.cpp:44–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42static void LightResetFrame(RpLight* light);
43
44void xFXInit()
45{
46 if (!xfx_initted)
47 {
48 xfx_initted = 1;
49
50 RpLight* light = RpLightCreate(rpLIGHTDIRECTIONAL);
51
52 if (light)
53 {
54 RwFrame* frame = RwFrameCreate();
55
56 if (frame)
57 {
58 RpLightSetFrame(light, frame);
59 LightResetFrame(light);
60
61 MainLight = light;
62 }
63 else
64 {
65 RpLightDestroy(light);
66 }
67 }
68
69 xFXanimUVCreate();
70 xFXAuraInit();
71 }
72}
73
74static U32 Im3DBufferPos = 0;
75static RwTexture* g_txtr_drawRing = NULL;

Callers 1

RenderWareInitFunction · 0.50

Calls 3

LightResetFrameFunction · 0.85
xFXanimUVCreateFunction · 0.85
xFXAuraInitFunction · 0.85

Tested by

no test coverage detected