
344 9. The complete package: OpenFX
typedef struct Designer_EDGE_tag {
long V[2]; /* List of vertices at the end of the edge. */
} edge;
Listing 9.12: T h e edge data structure. Some member s have been omitted to help
highlight th e most important items.
typedef struct Designer_FACE_tag {
long V[3]; /* The vertices around the face. */
/* Which material is to be applied to this face */
short material;
/* Which Image/Texture map is to be applied to this face*/
short imagemap;
/* These are the Image/Texture coordinates for the vertics
of the face, they are done on a PER FACE basis so that
adjacent faces cna have a different mapping*/
float x[3],y[3];
BOOL gp; ...