From bc1f62c43d65a5fe9dafd4124e5e780287641621 Mon Sep 17 00:00:00 2001 From: realtradam Date: Sun, 18 Jun 2023 23:09:15 -0400 Subject: . --- external/RodeoKit | 2 +- src/main.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/external/RodeoKit b/external/RodeoKit index 2b4fef0..ed248e6 160000 --- a/external/RodeoKit +++ b/external/RodeoKit @@ -1 +1 @@ -Subproject commit 2b4fef04217ba2b0ab5eb71cc23d518340cd979d +Subproject commit ed248e655236699bdeae473a602b2c74b2f47fa7 diff --git a/src/main.c b/src/main.c index 831a6f1..ecb17fc 100644 --- a/src/main.c +++ b/src/main.c @@ -300,6 +300,7 @@ main_loop(void) .height = 19 }, 0, + (rodeo_math_vec2_t){0}, (rodeo_color_RGBAFloat_t){ .array = {1,1,1,1} }, texture ); @@ -319,14 +320,15 @@ main_loop(void) .height = 19 }, 0, + (rodeo_math_vec2_t){0}, (rodeo_color_RGBAFloat_t){ .array = {1.0,1.0,1.0,1.0} }, texture ); rodeo_gfx_texture_2d_draw( (rodeo_rectangle_t){ - .x = (float)*(int64_t*)mouse_x_input(NULL,NULL) - (orc_size[1] / 2.0f), - .y = (float)*(int64_t*)mouse_y_input(NULL,NULL) - (orc_size[1] / 2.0f), + .x = (float)*(int64_t*)mouse_x_input(NULL,NULL), + .y = (float)*(int64_t*)mouse_y_input(NULL,NULL), .width = orc_size[0], .height = orc_size[1], }, @@ -337,6 +339,7 @@ main_loop(void) .height = 19 }, (float)rodeo_gfx_frame_count_get() / 60.0f, + (rodeo_math_vec2_t){ .val = { .x = orc_size[0]/2.0f, .y = orc_size[1]/2.0f } }, (rodeo_color_RGBAFloat_t){ .array = {1.0,1.0,1.0,1.0} }, texture ); -- cgit v1.2.3