summaryrefslogtreecommitdiffstats
path: root/obj.h
diff options
context:
space:
mode:
Diffstat (limited to 'obj.h')
-rw-r--r--obj.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/obj.h b/obj.h
index 18b1e2b..b70f9f9 100644
--- a/obj.h
+++ b/obj.h
@@ -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