| 94 | } |
| 95 | |
| 96 | void iCameraBegin(RwCamera* cam, S32 clear) |
| 97 | { |
| 98 | if (clear) |
| 99 | { |
| 100 | if (xglobals->fog.type != rwFOGTYPENAFOGTYPE) |
| 101 | { |
| 102 | RwCameraClear(cam, &xglobals->fog.bgcolor, rwCAMERACLEARIMAGE | rwCAMERACLEARZ); |
| 103 | } |
| 104 | else |
| 105 | { |
| 106 | RwCameraClear(cam, NULL, rwCAMERACLEARZ); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | RwCameraSetNearClipPlane(cam, sCameraNearClip); |
| 111 | RwCameraBeginUpdate(cam); |
| 112 | } |
| 113 | |
| 114 | void iCameraEnd(RwCamera* cam) |
| 115 | { |