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

Method InitGX

src/SB/Core/gc/iFMV.cpp:347–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void iFMV::InitGX()
348{
349 GXSetViewport(0, 0, mRenderMode->fbWidth, mRenderMode->efbHeight, 0.0f, 1.0f);
350 GXSetScissor(0, 0, mRenderMode->fbWidth, mRenderMode->efbHeight);
351 f32 yScaleFactor = GXGetYScaleFactor(mRenderMode->efbHeight, mRenderMode->xfbHeight);
352 u16 r = GXSetDispCopyYScale(yScaleFactor);
353
354 GXSetDispCopySrc(0, 0, mRenderMode->fbWidth, mRenderMode->efbHeight);
355 GXSetDispCopyDst(mRenderMode->fbWidth, r);
356 GXSetCopyFilter(mRenderMode->aa, mRenderMode->sample_pattern, GX_TRUE, mRenderMode->vfilter);
357
358 if (mRenderMode->aa)
359 {
360 GXSetPixelFmt(GX_PF_RGB565_Z16, GX_ZC_LINEAR);
361 }
362 else
363 {
364 GXSetPixelFmt(GX_PF_RGB8_Z24, GX_ZC_LINEAR);
365 }
366
367 GXCopyDisp(mCurrentFrameBuffer, GX_TRUE);
368 GXSetDispCopyGamma(GX_GM_1_0);
369 GXSetCullMode(GX_CULL_NONE);
370}
371
372void iFMV::InitVI()
373{

Callers

nothing calls this directly

Calls 11

GXSetViewportFunction · 0.85
GXSetScissorFunction · 0.85
GXGetYScaleFactorFunction · 0.85
GXSetDispCopyYScaleFunction · 0.85
GXSetDispCopySrcFunction · 0.85
GXSetDispCopyDstFunction · 0.85
GXSetCopyFilterFunction · 0.85
GXSetPixelFmtFunction · 0.85
GXCopyDispFunction · 0.85
GXSetDispCopyGammaFunction · 0.85
GXSetCullModeFunction · 0.85

Tested by

no test coverage detected