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

Function iCameraBegin

src/SB/Core/x/iCamera.cpp:96–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void 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
114void iCameraEnd(RwCamera* cam)
115{

Callers 1

xCameraBeginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected