summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-06-22 18:10:42 -0400
committerrealtradam <[email protected]>2023-06-22 18:10:42 -0400
commitea50dd94e98ef8df21e051872abf3c5cb52497b9 (patch)
tree6e587fffe19186e15b05668101175fbcfc4392b8
parentbc1f62c43d65a5fe9dafd4124e5e780287641621 (diff)
downloadrodeo_sample_game-ea50dd94e98ef8df21e051872abf3c5cb52497b9.tar.gz
rodeo_sample_game-ea50dd94e98ef8df21e051872abf3c5cb52497b9.zip
.
m---------external/RodeoKit0
-rw-r--r--src/main.c23
2 files changed, 14 insertions, 9 deletions
diff --git a/external/RodeoKit b/external/RodeoKit
-Subproject ed248e655236699bdeae473a602b2c74b2f47fa
+Subproject a4aca2a3c3084882eb2a3912ef3f87e02153c74
diff --git a/src/main.c b/src/main.c
index ecb17fc..247e50f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -186,16 +186,21 @@ main_loop(void)
if(*(bool*)summon_units_input(NULL, NULL))
{
summon_units();
+ rodeo_gfx_matrix_push();
+ rodeo_gfx_matrix_set(
+ rodeo_math_mat4_translate(
+ rodeo_gfx_matrix_get(),
+ (rodeo_math_vec3_t){ .raw = { 1, 1, 0 } }
+ )
+ );
+ rodeo_log(
+ rodeo_logLevel_info,
+ "%i / %i",
+ rodeo_gfx_matrix_size(),
+ rodeo_gfx_matrix_capacity()
+ );
}
- rodeo_log(
- rodeo_logLevel_warning,
- "%f, %f",
- (float)*(int64_t*)mouse_x_input(NULL,NULL) - (150.0f / 2.0f),
- (float)*(int64_t*)mouse_y_input(NULL,NULL) - (150.0f / 2.0f)
- );
-
-
rodeo_rectangle_t scissor = {
.x = (float)*(int64_t*)mouse_x_input(NULL,NULL) - (150.0f / 2.0f),
.y = (float)*(int64_t*)mouse_y_input(NULL,NULL) - (150.0f / 2.0f),
@@ -309,7 +314,7 @@ main_loop(void)
rodeo_gfx_texture_2d_draw(
(rodeo_rectangle_t){
.x = (float)(int32_t)summon_position.x - (orc_size[0] / 2.0f),
- .y = (float)(int32_t)summon_position.y - (orc_size[1] / 2.0f) ,
+ .y = (float)(int32_t)summon_position.y - (orc_size[1] / 2.0f),
.width = orc_size[0],
.height = orc_size[1],
},