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

Method DrawLabel

Code/CryEngine/CryNetwork/Protocol/MessageQueue.cpp:1792–1805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1790}
1791
1792void CMessageQueue::DrawLabel(float x, float y, float* clr, const char* msg, ...)
1793{
1794 va_list args;
1795 va_start(args, msg);
1796 char buffer[4096];
1797 cry_vsprintf(buffer, msg, args);
1798
1799 gEnv->pRenderer->Draw2dLabel((float)x, (float)y, 1.f, clr, false, "%s", buffer);
1800 ITextModeConsole* t = gEnv->pSystem->GetITextModeConsole();
1801 if (t)
1802 t->PutText((int)(x / 4 - 2), (int)(y / 10 - 1), buffer);
1803
1804 va_end(args);
1805}
1806
1807const char* CMessageQueue::DebugMessageForHandle(SSendableHandle hdl)
1808{

Callers 2

SchedulerDebugDrawMethod · 0.45
ChannelStatsDrawMethod · 0.45

Calls 4

cry_vsprintfFunction · 0.85
GetITextModeConsoleMethod · 0.80
Draw2dLabelMethod · 0.45
PutTextMethod · 0.45

Tested by

no test coverage detected