#ifndef __ICOS_H__ #define __ICOS_H__ #include "shmath.h" #include "demo.h" #include "poly.h" #define NUM_ICOS_VERTS 12 #define NUM_ICOS_FACES 20 #define CENTER_X 160 #define CENTER_Y 102 #define NUM_TEXTURES 20 void icosDemo(); struct Icosahedron { Point3D projVert[NUM_ICOS_VERTS]; XYZ xformVert[NUM_ICOS_VERTS]; XYZ vert[NUM_ICOS_VERTS]; XYZ normals[NUM_ICOS_FACES]; Fixed32 centerX; Fixed32 centerY; Fixed32 centerZ; Triangle faces[NUM_ICOS_FACES]; Fixed32 faceLength; Fixed32 faceLengthOver2; }; typedef struct Icosahedron Icosahedron; typedef XYZ IcosVert[NUM_ICOS_VERTS]; void icosInit( void ); void icosCreate( Icosahedron *poly, Fixed32 centerX, Fixed32 centerY, Fixed32 centerZ, Fixed32 faceLength ); void icosParProj( Icosahedron *poly ); void icosXformVert( Icosahedron *poly ); void icosXformVert2( Icosahedron *poly ); void icosCalcFace( Icosahedron *poly ); void icosCalc( Icosahedron *poly ); void icosMove( Icosahedron *poly ); void icosMove2( Icosahedron *poly ); void icosDraw( Icosahedron *poly ); void myLoadTex(); #endif /* __ICOS_H__ */