MCPcopy Create free account
hub / github.com/ddnet/ddnet / Text

Method Text

src/engine/client/text.cpp:1349–1356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1347 }
1348
1349 void Text(float x, float y, float FontSize, const char *pText, float LineWidth = -1.0f) override
1350 {
1351 CTextCursor Cursor;
1352 Cursor.SetPosition(vec2(x, y));
1353 Cursor.m_FontSize = FontSize;
1354 Cursor.m_LineWidth = LineWidth;
1355 TextEx(&Cursor, pText, -1);
1356 }
1357
1358 float TextWidth(float FontSize, const char *pText, int StrLength = -1, float LineWidth = -1.0f, int Flags = 0, const STextSizeProperties &TextSizeProps = {}) override
1359 {

Callers 15

RenderCandidatesMethod · 0.80
DebugRenderMethod · 0.80
RenderTimeMethod · 0.80
PopupMessageMethod · 0.80
PopupConfirmMethod · 0.80
PopupSelectionMethod · 0.80
RenderGameTimerMethod · 0.80
RenderSuddenDeathMethod · 0.80
RenderWarmupTimerMethod · 0.80
RenderTextInfoMethod · 0.80

Calls 1

SetPositionMethod · 0.45

Tested by 1

OnRenderMethod · 0.64