| 42 | static void LightResetFrame(RpLight* light); |
| 43 | |
| 44 | void 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 | |
| 74 | static U32 Im3DBufferPos = 0; |
| 75 | static RwTexture* g_txtr_drawRing = NULL; |
no test coverage detected