From 4b6ae783ce2c9f08d21d2a2969826412cc587de2 Mon Sep 17 00:00:00 2001 From: realtradam Date: Tue, 25 Apr 2023 20:28:59 -0400 Subject: finish switching to c99 --- include/rodeo/log_t.h | 12 ++++++++---- include/rodeo_types.h | 9 ++++++--- 2 files changed, 14 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/rodeo/log_t.h b/include/rodeo/log_t.h index 844601a..89accc3 100644 --- a/include/rodeo/log_t.h +++ b/include/rodeo/log_t.h @@ -19,10 +19,12 @@ void typedef union { - struct { + struct + { float x; float y; - }; + } + position; float array[2]; } rodeo_vector2_t; @@ -30,11 +32,13 @@ rodeo_vector2_t; typedef union { - struct { + struct + { float x; float y; float z; - }; + } + position; float array[3]; } rodeo_vector3_t; 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]; } -- cgit v1.2.3