MCPcopy Create free account
hub / github.com/TheRealMJP/Shadows / Render

Method Render

Shadows/SampleFramework11/TextGUI.cpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void TextGUI::Render(SpriteRenderer& renderer, SpriteFont& defaultFont)
67{
68 XMMATRIX translation = XMMatrixTranslation(position.x, position.y, 0.0f);
69 std::wstring text = name;
70 text += L"(";
71 text += static_cast<wchar>(toggleKey);
72 text += L"): ";
73 text += valueNames[value];
74 renderer.RenderText(defaultFont, text.c_str(), translation, XMFLOAT4(1, 1, 0, 1));
75}
76
77// == BoolGUI =====================================================================================
78

Callers

nothing calls this directly

Calls 1

RenderTextMethod · 0.45

Tested by

no test coverage detected