summaryrefslogtreecommitdiff
path: root/include/color.h
diff options
context:
space:
mode:
authorDerek Hensley <hensley.derek58@gmail.com>2021-08-15 07:56:20 -0700
committerGitHub <noreply@github.com>2021-08-15 10:56:20 -0400
commitf90e3ee739689ffa404e0e45eddf2e08dc5569dd (patch)
treeaf6ee237d196e4a550fc3b6d34f36db0ce6e2b88 /include/color.h
parent5dc98392e034a3f4ba1dafbf69883d657db4817d (diff)
Color_RGBAu32 (#253)
* Renamed deprecated RGB5A1 to RGBA16 * Cleanup shopkeeper structs with Color_RGBAu32 and Vec3f * Rename functions with RGB5A1 in them * BSS fix
Diffstat (limited to 'include/color.h')
-rw-r--r--include/color.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/color.h b/include/color.h
index 18fbe76c4..06cf63972 100644
--- a/include/color.h
+++ b/include/color.h
@@ -28,6 +28,10 @@ typedef struct {
f32 r, g, b, a;
} Color_RGBAf;
+typedef struct {
+ u32 r, g, b, a;
+} Color_RGBAu32;
+
typedef union {
struct {
u16 r : 5;
@@ -36,6 +40,6 @@ typedef union {
u16 a : 1;
};
u16 rgba;
-} Color_RGB5A1;
+} Color_RGBA16;
#endif