Change f32x3 to union
This commit is contained in:
		| @@ -31,23 +31,21 @@ struct f32x2 { | ||||
|   }; | ||||
| }; | ||||
|  | ||||
| typedef struct f32x3 V3f; | ||||
| struct f32x3 { | ||||
|   union { | ||||
|     f32 elements[V3_ELEM_COUNT]; | ||||
|     struct { | ||||
|       union { | ||||
|         f32 x; | ||||
|         f32 r; | ||||
|       }; | ||||
|       union { | ||||
|         f32 y; | ||||
|         f32 g; | ||||
|       }; | ||||
|       union { | ||||
|         f32 z; | ||||
|         f32 b; | ||||
|       }; | ||||
| typedef union f32x3 V3f; | ||||
| union f32x3 { | ||||
|   f32 elements[V3_ELEM_COUNT]; | ||||
|   struct { | ||||
|     union { | ||||
|       f32 x; | ||||
|       f32 r; | ||||
|     }; | ||||
|     union { | ||||
|       f32 y; | ||||
|       f32 g; | ||||
|     }; | ||||
|     union { | ||||
|       f32 z; | ||||
|       f32 b; | ||||
|     }; | ||||
|   }; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user