/* Paramètre les données qui doivent être en virgule fixe, pour éviter tout problème de précision. Testé avec Borland C++ 4.02 en modèle small par Jim Mischel 12/16/94. */ #include "polygon.h" /* Tous les points du cube de base */ static IntPoint3 IntCubeVerts[NUM_CUBE_VERTS] = { {15,15,15},{15,15,-15},{15,-15,15},{15,-15,-15}, {-15,15,15},{-15,15,-15},{-15,-15,15},{-15,-15,-15} }; /* Transformation de l'espace monde en espace de visualisation */ static int IntWorldViewXform[3][4] = { {1,0,0,0}, {0,1,0,0}, {0,0,1,0}}; void InitializeFixedPoint() { int i, j; for (i=0; i<3; i++) for (j=0; j<4; j++) WorldViewXform[i][j] = INT_TO_FIXED(IntWorldViewXform[i][j]); for (i=0; i