diff options
author | jvech <jmvalenciae@unal.edu.co> | 2023-06-10 21:13:02 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2023-06-10 21:13:02 -0500 |
commit | 756490a02d84288ee635a8aa33811e043ca10b44 (patch) | |
tree | 7088759369e55d8ec26fc1aea74c6655df150e48 /src/obj.c | |
parent | 0a245e329a9af7df792981f1f35a70bbfaded8b9 (diff) |
add: style code improvments done
Diffstat (limited to 'src/obj.c')
-rw-r--r-- | src/obj.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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; |