>void Initialiser(void)
{
Sommet[0].x = -100; Sommet[0].y = -100; Sommet[0].z = -100;
Sommet[1].x = 100; Sommet[1].y = -100; Sommet[1].z = -100;
Sommet[2].x = 100; Sommet[2].y = 100; Sommet[2].z = -100;
Sommet[3].x = -100; Sommet[3].y = 100; Sommet[3].z = -100;
Sommet[4].x = 100; Sommet[4].y = -100; Sommet[4].z = 100;
Sommet[5].x = -100; Sommet[5].y = -100; Sommet[5].z = 100;
Sommet[6].x = -100; Sommet[6].y = 100; Sommet[6].z = 100;
Sommet[7].x = 100; Sommet[7].y = 100; Sommet[7].z = 100;
}
void Afficher()
{
DrawLine(Point2D[1].x,Point2D[1].y,Point2D[2].x,Point2D[2].y,A_XOR);
DrawLine(Point2D[2].x,Point2D[2].y,Point2D[3].x,Point2D[3].y,A_XOR);
DrawLine(Point2D[3].x,Point2D[3].y,Point2D[4].x,Point2D[4].y,A_XOR);
DrawLine(Point2D[4].x,Point2D[4].y,Point2D[1].x,Point2D[1].y,A_XOR);
DrawLine(Point2D[5].x,Point2D[5].y,Point2D[6].x,Point2D[6].y,A_XOR);
DrawLine(Point2D[6].x,Point2D[6].y,Point2D[7].x,Point2D[7].y,A_XOR);
DrawLine(Point2D[7].x,Point2D[7].y,Point2D[8].x,Point2D[8].y,A_XOR);
DrawLine(Point2D[8].x,Point2D[8].y,Point2D[5].x,Point2D[5].y,A_XOR);
DrawLine(Point2D[1].x,Point2D[1].y,Point2D[6].x,Point2D[6].y,A_XOR);
DrawLine(Point2D[2].x,Point2D[2].y,Point2D[5].x,Point2D[5].y,A_XOR);
DrawLine(Point2D[3].x,Point2D[3].y,Point2D[8].x,Point2D[8].y,A_XOR);
DrawLine(Point2D[4].x,Point2D[4].y,Point2D[7].x,Point2D[7].y,A_XOR);
}
pardon mais,
tu veux faire un jeu 3D optimisé
???
je ne ferai que te conseiller d'ecouter PpHd!