diff options
Diffstat (limited to 'obj.h')
-rw-r--r-- | obj.h | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -14,15 +14,18 @@ typedef struct typedef struct { - int Vertex[3]; - int Normal[3]; - int TexCoord[3]; + int Vertex[4]; + int Normal[4]; + int TexCoord[4]; } ObjFace; typedef struct { + char *mtllib; + char *o_name; + char *g_name; int nVertex, nNormal, nTexCoord, nFace; - + ObjVertex *VertexArray; ObjNormal *NormalArray; ObjTexCoord *TexCoordArray; @@ -30,12 +33,10 @@ typedef struct } 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 **); +void ObjFree(ObjModel *); #endif |