| 1432 | namespace |
| 1433 | { |
| 1434 | void DrawText(const float x, const float y, ColorF c, const char* format, ...) |
| 1435 | { |
| 1436 | va_list args; |
| 1437 | va_start(args, format); |
| 1438 | |
| 1439 | SDrawTextInfo ti; |
| 1440 | ti.flags = eDrawText_FixedSize | eDrawText_2D | eDrawText_Monospace; |
| 1441 | ti.xscale = ti.yscale = 1.2f; |
| 1442 | ti.color[0] = c.r; |
| 1443 | ti.color[1] = c.g; |
| 1444 | ti.color[2] = c.b; |
| 1445 | ti.color[3] = c.a; |
| 1446 | gEnv->pRenderer->DrawTextQueued(Vec3(x, y, 1.0f), ti, format, args); |
| 1447 | va_end(args); |
| 1448 | } |
| 1449 | } |
| 1450 | |
| 1451 | #endif |
no test coverage detected