summaryrefslogtreecommitdiffstats
path: root/obj.h
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2010-10-15 17:30:54 -0500
committerKamil Kaminski <kamilkss@gmail.com>2010-10-15 17:30:54 -0500
commit1a7e2a8e625d4ef2038b3ae162fa892ac6826f85 (patch)
treee278c2c8cb07a7f4dc03d321bdc01b25f4707625 /obj.h
parente5d89c0cc954931a739390f745811b86866f41e5 (diff)
downloadOBJLoader-1a7e2a8e625d4ef2038b3ae162fa892ac6826f85.tar.gz
OBJLoader-1a7e2a8e625d4ef2038b3ae162fa892ac6826f85.tar.bz2
OBJLoader-1a7e2a8e625d4ef2038b3ae162fa892ac6826f85.zip
Cleanups
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