| 1 | #pragma once |
| 2 | |
| 3 | #include <nn/types.h> |
| 4 | |
| 5 | namespace nn::util { |
| 6 | |
| 7 | typedef uint32_t AngleIndex; |
| 8 | |
| 9 | struct Float2 { |
| 10 | union { |
| 11 | float v[2]; |
| 12 | struct { |
| 13 | float x; |
| 14 | float y; |
| 15 | }; |
| 16 | }; |
| 17 | }; |
| 18 | |
| 19 | struct Float3 { |
| 20 | union { |
| 21 | float v[3]; |
| 22 | struct { |
| 23 | float x; |
| 24 | float y; |
| 25 | float z; |
| 26 | }; |
| 27 | }; |
| 28 | }; |
| 29 | |
| 30 | struct Float4 { |
| 31 | union { |
| 32 | float v[4]; |
| 33 | struct { |
| 34 | float x; |
| 35 | float y; |
| 36 | float z; |
| 37 | float w; |
| 38 | }; |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | struct FloatColumnMajor4x3 { |
| 43 | float m[3][4]; |
| 44 | }; |
| 45 | |
| 46 | struct Unorm8x4 { |
| 47 | union { |
| 48 | uint8_t v[4]; |
| 49 | }; |
| 50 | }; |
| 51 | |
| 52 | typedef Unorm8x4 Color4u8Type; |
| 53 | |
| 54 | } // namespace nn::util |
| 55 | |