| 212 | } |
| 213 | |
| 214 | static 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 | |
| 245 | static void drawingBottomScreen(void) |
| 246 | { |
no test coverage detected