Fichier source : BrasRobotCubes.cpp
Modules utilitaires
/* Scene dessinee avec des cubes */
static void scene() {
glPushMatrix();
glRotatef(r1,0.0F,1.0F,0.0F);
glTranslatef(1.5F,0.0F,0.0F);
glPushMatrix();
glScalef(3.0F,1.0F,1.0F);
glutSolidCube(1.0);
glPopMatrix();
glTranslatef(1.5F,0.0F,0.0F);
glRotatef(r2,0.0F,1.0F,0.0F);
glTranslatef(1.5F,0.0F,0.0F);
glPushMatrix();
glScalef(3.0F,0.8F,0.8F);
glutSolidCube(1.0);
glPopMatrix();
glPopMatrix();
}