typedef struct { char name[20]; // Name of the object int vertices_qty; // Number of vertices int polygons_qty; // Number of polygons int size;// aprox size of the model vertex_type vertex[MAX_VERTICES]; // Array of vertices vertex_type normal[MAX_VERTICES]; // Array of the vertices' normals polygon_type polygon[MAX_POLYGONS]; // Array of polygons (numbers that point to the vertices' list) mapcoord_type mapcoord[MAX_VERTICES]; // Array of U,V coordinates for texture mapping int id_texture; // Number of the texture } obj_type, *obj_type_ptr;
vertex_type vertex[MAX_VERTICES]; // Array of vertices vertex_type normal[MAX_VERTICES]; // Array of the vertices' normals polygon_type polygon[MAX_POLYGONS]; // Array of polygons (numbers that point to the vertices' list) mapcoord_type mapcoord[MAX_VERTICES]; // Array of U,V coordinates for texture mapping