aboutsummaryrefslogtreecommitdiff
path: root/src/obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/obj.c')
-rw-r--r--src/obj.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/obj.c b/src/obj.c
index d832604..ea69f18 100644
--- a/src/obj.c
+++ b/src/obj.c
@@ -77,7 +77,7 @@ objCreate(const char *filename)
// On error return NULL
if (fi == NULL || mesh == NULL) {
- fprintf(stderr, "objCreateMesh() Error: %s\n", strerror(errno));
+ perror("objCreateMesh() Error");
fclose(fi);
exit(1);
}
@@ -133,7 +133,13 @@ objCreate(const char *filename)
}
void
-readF(char *line, Mesh *mesh, int meshIndex, struct Setv3 *v, struct Setv2 *vt, struct Setv3 *vn)
+readF(char *line,
+ Mesh *mesh,
+ int meshIndex,
+ struct Setv3 *v,
+ struct Setv2 *vt,
+ struct Setv3 *vn
+ )
{
Vertex vertexBuffer;
struct Seti *f;
Feel free to download, copy and edit any repo