9 float colorBronzeDiff[4] = { 0.8, 0.6, 0.0, 1.0 };
10 float colorRedDiff [4] = { 1.0, 0.0, 0.0, 1.0 };
11 float colorGreenDiff [4] = { 0.0, 1.0, 0.0, 1.0 };
12 float colorBlueDiff [4] = { 0.0, 0.0, 1.0, 1.0 };
15 glBegin(GL_TRIANGLES);
16 glColor4fv(colorBronzeDiff);
17 glVertex3f( 0.0, 0.0, 0.0 );
18 glVertex3f( 1.0, 0.0, 0.0 );
19 glVertex3f( 0.0, 1.0, 0.0 );
20 glColor4fv(colorRedDiff);
21 glVertex3f( 1.0, 0.0, 0.0 );
22 glVertex3f( 0.0, 1.0, 0.0 );
23 glVertex3f( 0.0, 0.0, 1.0 );
24 glColor4fv(colorGreenDiff);
25 glVertex3f( 0.0, 0.0, 0.0 );
26 glVertex3f( 0.0, 1.0, 0.0 );
27 glVertex3f( 0.0, 0.0, 1.0 );
28 glColor4fv(colorBlueDiff);
29 glVertex3f( 0.0, 0.0, 0.0 );
30 glVertex3f( 1.0, 0.0, 0.0 );
31 glVertex3f( 0.0, 0.0, 1.0 );