aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-11-11 10:32:29 +0000
committerrodri <rgl@antares-labs.eu>2023-11-11 10:32:29 +0000
commit8589a86c50275a53276e468d150737e395a04e4e (patch)
tree95373e3d91f40e1fbe2890b39508956b23323f0a
parentb86030fbaa1c1522f1d4f996ad763e2c3880bac9 (diff)
downloadlibobj-8589a86c50275a53276e468d150737e395a04e4e.tar.gz
libobj-8589a86c50275a53276e468d150737e395a04e4e.tar.bz2
libobj-8589a86c50275a53276e468d150737e395a04e4e.zip
removed unnecessary anonymous union in OBJVertex.
-rw-r--r--obj.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/obj.h b/obj.h
index 19bfdcb..83e80dc 100644
--- a/obj.h
+++ b/obj.h
@@ -26,7 +26,7 @@ enum {
OBJHTSIZE = 17
};
-typedef struct OBJVertex OBJVertex;
+typedef union OBJVertex OBJVertex;
typedef struct OBJVertexArray OBJVertexArray;
typedef struct OBJElem OBJElem;
//typedef struct OBJGroup OBJGroup;
@@ -35,13 +35,11 @@ typedef struct OBJ OBJ;
#pragma varargck type "O" OBJ*
-struct OBJVertex
+union OBJVertex
{
- union {
- struct { double x, y, z, w; }; /* geometric */
- struct { double u, v, vv; }; /* texture and parametric */
- struct { double i, j, k; }; /* normal */
- };
+ struct { double x, y, z, w; }; /* geometric */
+ struct { double u, v, vv; }; /* texture and parametric */
+ struct { double i, j, k; }; /* normal */
};
struct OBJVertexArray