History

removed dead code

ZappoMan committed 11 years ago

Commit e39ea721 parent 5d43c987 files · +2 −318Browse files

Showing the changes to interface/src/Util.cpp (1 of 7 files). Show all

Unified · Split

interface/src/Util.cpp+0−17
@@ -100,23 +100,6 @@ int widthText(float scale, int mono, char const* string) { · 99 unmodified lines
100100 return textRenderer(mono)->computeExtent(string).x; // computeWidth(string) * (scale / 0.10);
101101 }
102102
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−
120103 void renderCollisionOverlay(int width, int height, float magnitude, float red, float blue, float green) {
121104 const float MIN_VISIBLE_COLLISION = 0.01f;
122105 if (magnitude > MIN_VISIBLE_COLLISION) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t