Skip to content

Commit b25bbfc

Browse files
committed
address PR review
1 parent 70b6106 commit b25bbfc

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

include/ctr/lev.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
#include <ctr/macros.h>
44
#include <ctr/math.h>
55

6-
typedef struct Color
6+
typedef union Color
77
{
8-
uint32_t r : 8;
9-
uint32_t g : 8;
10-
uint32_t b : 8;
11-
uint32_t a : 8;
8+
struct
9+
{
10+
u8 r;
11+
u8 g;
12+
u8 b;
13+
u8 a;
14+
};
15+
u32 color;
1216
} Color;
1317

1418
typedef struct Vertex

0 commit comments

Comments
 (0)