summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo_types.h
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-03-26 04:19:40 -0400
committerrealtradam <[email protected]>2023-03-26 04:19:40 -0400
commit6a0ef52763cee6e6d7c631516461e0600d9a2da1 (patch)
tree551a58a654a08c37a44bba2d3616b214d045a02f /include/rodeo_types.h
parent4670ac42a773ea97157f71d78687f79d6ba3c1d9 (diff)
downloadRodeoKit-6a0ef52763cee6e6d7c631516461e0600d9a2da1.tar.gz
RodeoKit-6a0ef52763cee6e6d7c631516461e0600d9a2da1.zip
hmm
Diffstat (limited to 'include/rodeo_types.h')
-rw-r--r--include/rodeo_types.h39
1 files changed, 33 insertions, 6 deletions
diff --git a/include/rodeo_types.h b/include/rodeo_types.h
index 18c3691..a75da40 100644
--- a/include/rodeo_types.h
+++ b/include/rodeo_types.h
@@ -8,7 +8,8 @@
typedef struct irodeo_texture_internal_t irodeo_texture_internal_t;
typedef irodeo_texture_internal_t *rodeo_texture_internal_p;
-typedef union
+typedef
+union
{
struct {
float red;
@@ -20,7 +21,8 @@ typedef union
}
rodeo_color_RGBAFloat_t;
-typedef union
+typedef
+union
{
struct
{
@@ -35,7 +37,8 @@ typedef union
rodeo_color_RGBA8_t;
-typedef struct
+typedef
+struct
{
float x;
float y;
@@ -55,7 +58,8 @@ typedef
void
(*rodeo_mainLoop_function)(void);
-typedef struct
+typedef
+struct
{
float x;
float y;
@@ -64,7 +68,8 @@ typedef struct
}
rodeo_rectangle_t;
-typedef struct
+typedef
+struct
{
rodeo_texture_internal_p internal_texture;
uint32_t width;
@@ -95,7 +100,8 @@ typedef union {
/// --- Log ---
-typedef enum
+typedef
+enum
{
rodeo_logLevel_info,
rodeo_logLevel_warning,
@@ -107,4 +113,25 @@ typedef
void
(*rodeo_log_function)(rodeo_string_t text);
+typedef
+union
+{
+ struct {
+ float x;
+ float y;
+ };
+ float array[2];
+}
+rodeo_vector2_t;
+typedef
+union
+{
+ struct {
+ float x;
+ float y;
+ float z;
+ };
+ float array[3];
+}
+rodeo_vector3_t;