MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / drawingTopScreen

Function drawingTopScreen

source/drawing.c:214–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214static void drawingTopScreen(float iod)
215{
216 const uiStateInfo_s* ui;
217
218 // Set projection matrix
219 if (iod <= 0.0f)
220 C3D_FVUnifMtx4x4(GPU_VERTEX_SHADER, uLoc_projection, &s_projectionTop);
221
222 // Draw background
223 ui = g_uiStateBg;
224 if (ui->drawTop) ui->drawTop(iod);
225
226 // Draw current state
227 ui = uiGetStateInfo();
228 if (ui->drawTop) ui->drawTop(iod);
229
230 /*
231 // Draw debug text
232 static char debugText[128];
233 snprintf(debugText, sizeof(debugText), "Cmdbuf usage: %d%%", (int)(C3D_GetCmdBufUsage()*100));
234 */
235
236 drawingSetMode(DRAW_MODE_DRAWING);
237 drawingSetZ(0.0f);
238 textSetColor(0xFFFFFFFF);
239 //textDraw(8.0f, 32.0f, 0.5f, 0.5f, true, debugText);
240
241 // Draw fade
242 drawingFade(400, 240);
243}
244
245static void drawingBottomScreen(void)
246{

Callers 1

drawingFrameFunction · 0.85

Calls 5

uiGetStateInfoFunction · 0.85
drawingSetModeFunction · 0.85
drawingSetZFunction · 0.85
textSetColorFunction · 0.85
drawingFadeFunction · 0.85

Tested by

no test coverage detected