MCPcopy Create free account
hub / github.com/Prograda/Skybolt / drawControl2d

Function drawControl2d

src/SkyboltExamples/ExamplesCommon/HudSystem.cpp:106–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104float controlTickSize = 0.02;
105
106static void drawControl2d(VisHud& hud, const glm::vec2& position, float size, const glm::vec2& controlValue)
107{
108 float halfSize = size * 0.5f;
109 drawBoxOutline(hud, position, size, size);
110 drawPlus(hud, position + controlValue * halfSize, controlTickSize);
111}
112
113static void drawHSlider(VisHud& hud, const glm::vec2& position, float width, const float& controlValue)
114{

Callers 1

drawControlInputsFunction · 0.85

Calls 2

drawBoxOutlineFunction · 0.85
drawPlusFunction · 0.85

Tested by

no test coverage detected