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

Method SwapBuffers

src/SB/Core/gc/iTRC.cpp:168–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void ROMFont::SwapBuffers()
169{
170 void* buffer;
171
172 VISetNextFrameBuffer(mCurrentFrameBuffer);
173
174 if (mFirstFrame != false)
175 {
176 VISetBlack(TRUE);
177 mFirstFrame = false;
178 }
179 else
180 {
181 VISetBlack(FALSE);
182 }
183
184 VIFlush();
185 VIWaitForRetrace();
186
187 mCurrentFrameBuffer = mCurrentFrameBuffer == mXFBs[0] ? mXFBs[1] : mXFBs[0];
188}
189
190void ROMFont::DrawCell(S32 x, S32 y, S32 u, S32 v)
191{

Callers

nothing calls this directly

Calls 4

VISetNextFrameBufferFunction · 0.85
VISetBlackFunction · 0.85
VIFlushFunction · 0.85
VIWaitForRetraceFunction · 0.85

Tested by

no test coverage detected