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

Method InitGX

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

Source from the content-addressed store, hash-verified

102}
103
104void ROMFont::InitGX()
105{
106 U16 scaledHeight;
107 GXSetViewport(0.0f, 0.0f, mRenderMode->fbWidth, mRenderMode->efbHeight, 0.0f, 1.0f);
108 GXSetScissor(0, 0, mRenderMode->fbWidth, mRenderMode->efbHeight);
109
110 scaledHeight =
111 GXSetDispCopyYScale(GXGetYScaleFactor(mRenderMode->efbHeight, mRenderMode->xfbHeight));
112 GXSetDispCopySrc(0, 0, mRenderMode->fbWidth, mRenderMode->efbHeight);
113 GXSetDispCopyDst(mRenderMode->fbWidth, scaledHeight);
114
115 GXSetCopyFilter(mRenderMode->aa, mRenderMode->sample_pattern, TRUE, mRenderMode->vfilter);
116
117 if (mRenderMode->aa != FALSE)
118 {
119 GXSetPixelFmt(GX_PF_RGB565_Z16, GX_ZC_LINEAR);
120 }
121 else
122 {
123 GXSetPixelFmt(GX_PF_RGB8_Z24, GX_ZC_LINEAR);
124 }
125
126 GXCopyDisp(mCurrentFrameBuffer, 1);
127 GXSetDispCopyGamma(GX_GM_1_0);
128 GXSetCullMode(GX_CULL_NONE);
129}
130
131void ROMFont::InitVI()
132{

Callers

nothing calls this directly

Calls 11

GXSetViewportFunction · 0.85
GXSetScissorFunction · 0.85
GXSetDispCopyYScaleFunction · 0.85
GXGetYScaleFactorFunction · 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