Fichier source : QuatreCubes.cpp
Modules utilitaires
/* Scene dessinee */
static void scene() {
glPushMatrix();
glPushMatrix();
glTranslatef(2.0F,0.0F,-2.0F);
glRotatef(45.0F,0.0F,1.0F,0.0F);
glutSolidCube(2.0);
glPopMatrix();
glPushMatrix();
glTranslatef(-2.0F,0.0F,-2.0F);
glRotatef(45.0F,0.0F,1.0F,0.0F);
glutSolidCube(2.0);
glPopMatrix();
glPushMatrix();
glTranslatef(-2.0F,0.0F,2.0F);
glRotatef(45.0F,0.0F,1.0F,0.0F);
glutSolidCube(2.0);
glPopMatrix();
glPushMatrix();
glTranslatef(2.0F,0.0F,2.0F);
glRotatef(45.0F,0.0F,1.0F,0.0F);
glutSolidCube(2.0);
glPopMatrix();
glPopMatrix();
}