void creation_fenetre() { int textures[6]; char *images[] = {"texture/fenetre/vue_fenetre.tga", "texture/fenetre/vue_fenetre.tga", "texture/fenetre/bord.tga", "texture/fenetre/bord.tga", "texture/fenetre/bord.tga", "texture/fenetre/bord.tga"}; int i; for(i = 0; i < 6; i++) charger_image(&textures[i], images[i]); id_fenetre = glGenLists(1); glNewList(id_fenetre, GL_COMPILE_AND_EXECUTE); glPushMatrix(); glTranslated(0.0, fenetre_y / 2.0 + 75.0, 0.0); glScaled(fenetre_x, fenetre_y, fenetre_z); creerCube(textures); glPopMatrix(); glEndList(); }
/* * Méthode qui contient les instructions OpenGL pour la display list du mur nord en 3D */ void Mur::mur3D() { creerCube(-0.5, 0.5, 0.5, 0.6, -0.5, 0.5, 16); }