| 1212 | } |
| 1213 | |
| 1214 | static void bar(float bar, int o, float r, float g, float b) |
| 1215 | { |
| 1216 | int side = 2*FONTH; |
| 1217 | float x1 = side, x2 = bar*(VIRTW*1.2f-2*side)+side; |
| 1218 | float y1 = o*FONTH; |
| 1219 | glColor3f(0.3f, 0.3f, 0.3f); |
| 1220 | glBegin(GL_TRIANGLE_STRIP); |
| 1221 | loopk(10) |
| 1222 | { |
| 1223 | float c = 1.2f*cosf(PI/2 + k/9.0f*PI), s = 1 + 1.2f*sinf(PI/2 + k/9.0f*PI); |
| 1224 | glVertex2f(x2 - c*FONTH, y1 + s*FONTH); |
| 1225 | glVertex2f(x1 + c*FONTH, y1 + s*FONTH); |
| 1226 | } |
| 1227 | glEnd(); |
| 1228 | |
| 1229 | glColor3f(r, g, b); |
| 1230 | glBegin(GL_TRIANGLE_STRIP); |
| 1231 | loopk(10) |
| 1232 | { |
| 1233 | float c = cosf(PI/2 + k/9.0f*PI), s = 1 + sinf(PI/2 + k/9.0f*PI); |
| 1234 | glVertex2f(x2 - c*FONTH, y1 + s*FONTH); |
| 1235 | glVertex2f(x1 + c*FONTH, y1 + s*FONTH); |
| 1236 | } |
| 1237 | glEnd(); |
| 1238 | } |
| 1239 | |
| 1240 | void show_out_of_renderloop_progress(float bar1, const char *text1, float bar2, const char *text2) // also used during loading |
| 1241 | { |
no test coverage detected