summaryrefslogtreecommitdiffstats
path: root/obj.h
diff options
context:
space:
mode:
Diffstat (limited to 'obj.h')
-rw-r--r--obj.h11
1 files changed, 8 insertions, 3 deletions
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