summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--neofx/types.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/neofx/types.h b/neofx/types.h
index 8586545..7b46c55 100644
--- a/neofx/types.h
+++ b/neofx/types.h
@@ -6,9 +6,14 @@ typedef union _MATRIX {
float f[16];
} MATRIX;
-typedef struct _VECTOR_VERTEX_ROTATION {
- float x, y, z;
-} VECTOR, VERTEX, ROTATION;
+typedef union _VECTOR_VERTEX_ROTATION_COLOR {
+ struct {
+ float x, y, z;
+ };
+ struct {
+ float r, g, b;
+ };
+} VECTOR, VERTEX, ROTATION, COLOR;
typedef struct _TEXCOORDS {
float s, t;