| 1386 | } |
| 1387 | |
| 1388 | void R_drawBox(float x, float y, float w, float h, Vector4 color) |
| 1389 | { |
| 1390 | glDisable(GL_TEXTURE_2D); |
| 1391 | glColor4f(color.x, color.y, color.z, color.w); |
| 1392 | glBegin(GL_QUADS); |
| 1393 | { |
| 1394 | glVertex2f(x, y); |
| 1395 | glVertex2f(x + w, y); |
| 1396 | glVertex2f(x + w, y + h); |
| 1397 | glVertex2f(x, y + h); |
| 1398 | } |
| 1399 | glEnd(); |
| 1400 | glEnable(GL_TEXTURE_2D); |
| 1401 | } |
| 1402 | |
| 1403 | void R_drawScreenDebug() |
| 1404 | { |