From 1a7e2a8e625d4ef2038b3ae162fa892ac6826f85 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Fri, 15 Oct 2010 17:30:54 -0500 Subject: Cleanups --- obj.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'obj.h') diff --git a/obj.h b/obj.h index 962d325..18b1e2b 100644 --- a/obj.h +++ b/obj.h @@ -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 -- cgit v1.2.3