85 C_MTXOrtho(&projMtx, -VI_VIRTUAL_HALF_HEIGHT, VI_VIRTUAL_HALF_HEIGHT, -width, width, 0.0, 1.0);
86 GXSetProjection(&projMtx, 1);
90 GXLoadPosMtxImm(&posMtx, 0);
94 GXInvalidateVtxCache();
96 GXSetVtxDesc(GX_VA_POS, GX_VA_TEX0MTXIDX);
97 GXSetVtxAttrFmt(0, GX_VA_POS, 1, 4, 0);
101 GXSetChanCtrl(GX_COLOR0A0, 0, GX_SRC_REG, GX_SRC_REG, GX_LIGHT_NULL, GX_DF_NONE, GX_AF_NONE);
104 GXSetNumIndStages(0);
105 __GXSetIndirectMask(0);
107 GXSetNumTevStages(1);
108 GXSetTevOp(GX_TEVSTAGE0, 4);
109 GXSetTevOrder(GX_TEVSTAGE0, GX_TEXCOORD_NULL, GX_TEXMAP_NULL, GX_COLOR0A0);
111 GXSetBlendMode(GX_BM_NONE, GX_BL_ONE, GX_BL_ZERO, GX_LO_SET);
115 GXSetZMode(0, GX_NEVER, 0);
118 GXBegin(GX_QUADS, GX_VTXFMT0, 4);
120 GXPosition3f32(-width, -VI_VIRTUAL_HALF_HEIGHT, 0);
121 GXPosition3f32(width, -VI_VIRTUAL_HALF_HEIGHT, 0);
122 GXPosition3f32(width, VI_VIRTUAL_HALF_HEIGHT, 0);
123 GXPosition3f32(-width, VI_VIRTUAL_HALF_HEIGHT, 0);
128 GXInvalidateVtxCache();
130 GXSetVtxDesc(GX_VA_POS, GX_VA_TEX0MTXIDX);
131 GXSetVtxDesc(GX_VA_TEX0, GX_VA_TEX0MTXIDX);
132 GXSetVtxAttrFmt(0, GX_VA_POS, 1, 4, 0);
133 GXSetVtxAttrFmt(0, GX_VA_TEX0, 1, 4, 0);
137 GXSetChanCtrl(GX_COLOR0A0, 0, GX_SRC_REG, GX_SRC_REG, GX_LIGHT_NULL, GX_DF_NONE, GX_AF_NONE);
141 GXLoadTexObj(&texObj, GX_TEXMAP0);
145 GXLoadTexMtxImm(&texMtx, 30, GX_MTX_2x4);
146 GXSetTexCoordGen2(GX_TEXCOORD0, GX_TG_MTX2x4, GX_TG_TEX0, 30, 0, 125);
149 GXSetNumIndStages(0);
150 __GXSetIndirectMask(0);
152 GXSetNumTevStages(1);
153 GXSetTevColorIn(GX_TEVSTAGE0, GX_CC_ZERO, GX_CC_ZERO, GX_CC_ZERO, GX_CC_ZERO);
154 GXSetTevColorOp(GX_TEVSTAGE0, GX_TEV_ADD, GX_TB_ZERO, GX_TEV_SCALE_0, 1, GX_TEVPREV);
155 GXSetTevAlphaIn(GX_TEVSTAGE0, GX_CA_ZERO, GX_CA_ZERO, GX_CA_ZERO, GX_CA_TEXA);
156 GXSetTevAlphaOp(GX_TEVSTAGE0, GX_TEV_ADD, GX_TB_ZERO, GX_TEV_SCALE_0, 1, GX_TEVPREV);
157 GXSetTevOrder(GX_TEVSTAGE0, GX_TEXCOORD0, GX_TEXMAP0, GX_COLOR_NULL);
159 GXSetBlendMode(GX_BM_BLEND, GX_BL_SRCALPHA, GX_BL_INVSRCALPHA, GX_LO_SET);
162 GXSetAlphaCompare(GX_GREATER, 0, GX_AOP_OR, GX_GREATER, 0);
163 GXSetZMode(0, GX_NEVER, 0);
166 GXBegin(GX_QUADS, GX_VTXFMT0, 4);
168 GXPosition3f32(-width, -VI_VIRTUAL_HALF_HEIGHT, 0);
169 GXTexCoord2f32(0, 0);
170 GXPosition3f32(width, -VI_VIRTUAL_HALF_HEIGHT, 0);
171 GXTexCoord2f32(1, 0);
172 GXPosition3f32(width, VI_VIRTUAL_HALF_HEIGHT, 0);
173 GXTexCoord2f32(1, 1);
174 GXPosition3f32(-width, VI_VIRTUAL_HALF_HEIGHT, 0);
175 GXTexCoord2f32(0, 1);