-
Notifications
You must be signed in to change notification settings - Fork 0
/
try_spots.h
49 lines (40 loc) · 1.56 KB
/
try_spots.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include "shapes.h"
void draw_try_spots() {
glPushMatrix();
draw_cube(1300, 475, 100, 126, 195, 79); // Green ...
glTranslatef(0.0, 525.0, 0.0);
draw_cube(1300, 475, 100, 126, 195, 79); // Green ...
glTranslatef(7200.0, 0.0, 0.0);
draw_cube(1300, 475, 100, 126, 195, 79); // Green ...
glTranslatef(0.0, -525.0, 0.0);
draw_cube(1300, 475, 100, 126, 195, 79); // Green ...
for (int i=0; i<4; i++) {
glTranslatef(-1330.0, 0.0, 0.0);
draw_cube(750, 475, 100, 126, 195, 79);
}
glTranslatef(0.0, 525.0, 0.0);
for (int i=0; i<4; i++) {
draw_cube(750, 475, 100, 126, 195, 79);
glTranslatef(1330.0, 0.0, 0.0);
}
glPopMatrix();
glPushMatrix();
glTranslatef(0.0, 475.0, 0.0);
draw_cube(8500, 50, 100, 255, 255, 255); // White ...
glPopMatrix();
glPushMatrix();
glTranslatef(1300.0, 0.0, 0.0);
for (int i=0; i<5; i++) {
draw_cube(580, 10, 10, 253, 229, 153); // Yellow ...
glTranslatef(1330.0, 0.0, 0.0);
}
glTranslatef(0.0, 990.0, 0.0);
for (int i=0; i<5; i++) {
glTranslatef(-1330.0, 0.0, 0.0);
draw_cube(580, 10, 10, 253, 229, 153); // Yellow ...
}
glPopMatrix();
}