MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / DrawText

Function DrawText

Code/CryEngine/CryEntitySystem/EntitySystem.cpp:1434–1448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1432namespace
1433{
1434void 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

Callers 2

DebugDrawLayerInfoMethod · 0.70
RenderTest_TextMethod · 0.50

Calls 1

DrawTextQueuedMethod · 0.80

Tested by

no test coverage detected