| 64 | } |
| 65 | |
| 66 | void 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 |
nothing calls this directly
no test coverage detected