diff options
Diffstat (limited to 'obj.h')
-rw-r--r-- | obj.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -17,19 +17,24 @@ typedef struct int Vertex[3]; int Normal[3]; int TexCoord[3]; -} ObjTriangle; +} ObjFace; typedef struct { - int nVertex, nNormal, nTexCoord, nTriangle; + int nVertex, nNormal, nTexCoord, nFace; ObjVertex *VertexArray; ObjNormal *NormalArray; ObjTexCoord *TexCoordArray; - ObjTriangle *TriangleArray; + ObjFace *FaceArray; } ObjModel; +/* function prototypes */ + + ObjModel *ObjLoadModel(char *, size_t); + +/* read a file into argument 2, and return amount of bytes read */ size_t ObjLoadFile(char *, char **); #endif |