Fix rendering current entity

This commit is contained in:
SamratGhale
2026-03-28 06:42:23 +05:45
parent be8c936e33
commit 3eb0c2555f
4 changed files with 28 additions and 9 deletions
+8
View File
@@ -71,6 +71,14 @@ handle_entity_mode :: proc(
input := &state.input
mpos := draw.camera_convert_screen_to_world(&state.draw.cam, input.mouse)
if interface.selected_entity != -1
{
def := &level.entity_defs[interface.selected_entity]
{
draw.solid_circle_add(&interface.state.draw.solid_circles, {p = def.body_def.position, q = {c = 1} }, 0.2, {1, 0, 0, 1})
}
}
//Setlect entity
if is_key_pressed(state, glfw.MOUSE_BUTTON_LEFT)
{