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

Function drawPlus

src/SkyboltExamples/ExamplesCommon/HudSystem.cpp:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87static void drawPlus(VisHud& hud, const glm::vec2& position, float size)
88{
89 double halfSize = size * 0.5;
90 hud.drawLine(position + glm::vec2(-halfSize, 0), position + glm::vec2(halfSize, 0));
91 hud.drawLine(position + glm::vec2(0, -halfSize), position + glm::vec2(0, halfSize));
92}
93
94static void drawBoxOutline(VisHud& hud, const glm::vec2& position, float width, float height)
95{

Callers 1

drawControl2dFunction · 0.85

Calls 1

drawLineMethod · 0.80

Tested by

no test coverage detected