summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo_types.h
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-04-25 20:28:59 -0400
committerrealtradam <[email protected]>2023-04-25 20:28:59 -0400
commit4b6ae783ce2c9f08d21d2a2969826412cc587de2 (patch)
tree3153378c3a6238288e0d519c482edacf4dc6cfa4 /include/rodeo_types.h
parent6d58c7ab983e6c2345794ee7bde8dc698cf06f0e (diff)
downloadRodeoKit-4b6ae783ce2c9f08d21d2a2969826412cc587de2.tar.gz
RodeoKit-4b6ae783ce2c9f08d21d2a2969826412cc587de2.zip
finish switching to c99
Diffstat (limited to 'include/rodeo_types.h')
-rw-r--r--include/rodeo_types.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/rodeo_types.h b/include/rodeo_types.h
index bc92fb4..f3c81fa 100644
--- a/include/rodeo_types.h
+++ b/include/rodeo_types.h
@@ -14,12 +14,14 @@ typedef irodeo_texture_internal_t *rodeo_texture_internal_p;
typedef
union
{
- struct {
+ struct
+ {
float red;
float green;
float blue;
float alpha;
- };
+ }
+ colors;
float array[4];
}
rodeo_color_RGBAFloat_t;
@@ -33,7 +35,8 @@ union
uint8_t green;
uint8_t blue;
uint8_t alpha;
- };
+ }
+ colors;
uint32_t rgba;
uint8_t array[4];
}