diff options
author | rodri <rgl@antares-labs.eu> | 2023-11-11 10:32:29 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-11-11 10:32:29 +0000 |
commit | 8589a86c50275a53276e468d150737e395a04e4e (patch) | |
tree | 95373e3d91f40e1fbe2890b39508956b23323f0a | |
parent | b86030fbaa1c1522f1d4f996ad763e2c3880bac9 (diff) | |
download | libobj-8589a86c50275a53276e468d150737e395a04e4e.tar.gz libobj-8589a86c50275a53276e468d150737e395a04e4e.tar.bz2 libobj-8589a86c50275a53276e468d150737e395a04e4e.zip |
removed unnecessary anonymous union in OBJVertex.
-rw-r--r-- | obj.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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 |