Showing the changes to interface/src/Util.cpp (1 of 7 files). Show all
Unified · Split
| @@ -100,23 +100,6 @@ int widthText(float scale, int mono, char const* string) { · 99 unmodified lines | ||
| 100 | 100 | return textRenderer(mono)->computeExtent(string).x; // computeWidth(string) * (scale / 0.10); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | −void drawText(int x, int y, float scale, float radians, int mono, | |
| 104 | − char const* string, const float* color) { | |
| 105 | − // | |
| 106 | − // Draws text on screen as stroked so it can be resized | |
| 107 | − // | |
| 108 | − glPushMatrix(); | |
| 109 | − glTranslatef(static_cast<float>(x), static_cast<float>(y), 0.0f); | |
| 110 | − | |
| 111 | − | |
| 112 | − glRotated(double(radians * DEGREES_PER_RADIAN), 0.0, 0.0, 1.0); | |
| 113 | − glScalef(scale / 0.1f, scale / 0.1f, 1.0f); | |
| 114 | − | |
| 115 | − glm::vec4 colorV4 = {color[0], color[1], color[2], 1.0f }; | |
| 116 | − textRenderer(mono)->draw(0, 0, string, colorV4); | |
| 117 | − glPopMatrix(); | |
| 118 | −} | |
| 119 | − | |
| 120 | 103 | void renderCollisionOverlay(int width, int height, float magnitude, float red, float blue, float green) { |
| 121 | 104 | const float MIN_VISIBLE_COLLISION = 0.01f; |
| 122 | 105 | if (magnitude > MIN_VISIBLE_COLLISION) { |