Fichier source : TroisCubes.cpp
Modules utilitaires
/* Scene dessinee */
static void scene() {
glPushMatrix();
for ( int i = 0 ; i < 3 ; i++ ) {
float angle = i*120.0F;
glPushMatrix();
glRotatef(angle,0.0F,1.0F,0.0F);
glTranslatef(1.5F,0.0F,0.0F);
glutSolidCube(2.0);
glPopMatrix(); }
glPopMatrix();
}