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

Function drawVee

src/SkyboltExamples/ExamplesCommon/HudSystem.cpp:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77static void drawVee(VisHud& hud, const glm::vec2& position)
78{
79 double halfWidth = 0.02;
80 double height = 0.02;
81 hud.drawLine(position + glm::vec2(-halfWidth * 2, 0), position + glm::vec2(-halfWidth, 0));
82 hud.drawLine(position + glm::vec2(-halfWidth, 0), position + glm::vec2(0, -height));
83 hud.drawLine(position + glm::vec2(halfWidth, 0), position + glm::vec2(0, -height));
84 hud.drawLine(position + glm::vec2(halfWidth * 2, 0), position + glm::vec2(halfWidth, 0));
85}
86
87static void drawPlus(VisHud& hud, const glm::vec2& position, float size)
88{

Callers 1

updateStateMethod · 0.85

Calls 1

drawLineMethod · 0.80

Tested by

no test coverage detected