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

Function drawVSlider

src/SkyboltExamples/ExamplesCommon/HudSystem.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122static void drawVSlider(VisHud& hud, const glm::vec2& position, float height, const float& controlValue)
123{
124 float halfHeight = height * 0.5;
125 hud.drawLine(position + glm::vec2(0, -halfHeight), position + glm::vec2(0, halfHeight));
126
127 double y = height * controlValue - halfHeight;
128 hud.drawLine(position + glm::vec2(-controlTickSize * 0.5, y), position + glm::vec2(controlTickSize * 0.5, y));
129}
130
131static void drawControlInputs(VisHud& hud, const glm::vec2& position, const ControlInputsComponent& controlInputsComponents)
132{

Callers 1

drawControlInputsFunction · 0.85

Calls 1

drawLineMethod · 0.80

Tested by

no test coverage detected