-
Notifications
You must be signed in to change notification settings - Fork 0
/
jax.cpp
48 lines (39 loc) · 1007 Bytes
/
jax.cpp
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
void jax (void)
{
//centre cylinder
glPushMatrix();
glScaled(0.15, 1.5, 0.15);
glutSolidSphere(1, slices, stacks);
glPopMatrix();
//z-axis cylinder
glPushMatrix();
glScaled(0.15, 0.15, 1.5);
glutSolidSphere(1, slices, stacks);
glPopMatrix();
//x-axis cylinder
glPushMatrix();
glScaled(1.5, 0.15, 0.15);
glutSolidSphere(1, slices, stacks);
glPopMatrix();
//spheres
//z-axis-front
glPushMatrix();
glTranslated(0, 0, 1.3);
glutSolidSphere(0.27, slices, stacks);
glPopMatrix();
//z-axis-back
glPushMatrix();
glTranslated(0, 0, -1.3);
glutSolidSphere(0.27, slices, stacks);
glPopMatrix();
//x-axis-front
glPushMatrix();
glTranslated(1.3, 0, 0);
glutSolidSphere(0.27, slices, stacks);
glPopMatrix();
//x-axis-back
glPushMatrix();
glTranslated(-1.3, 0, 0);
glutSolidSphere(0.27, slices, stacks);
glPopMatrix();
}