Changed draw.odin, removed DearImgui
This commit is contained in:
+2
-1
@@ -4,6 +4,7 @@ import b2 "vendor:box2d"
|
||||
import im "shared:odin-imgui"
|
||||
import "vendor:glfw"
|
||||
import "base:runtime"
|
||||
import draw "./draw"
|
||||
|
||||
/*
|
||||
Handling input
|
||||
@@ -67,7 +68,7 @@ handle_entity_mode :: proc(
|
||||
interface := &game.interface
|
||||
level := &game_data.levels[game.curr_level]
|
||||
input := &state.input
|
||||
mpos := camera_convert_screen_to_world(&state.draw.cam, input.mouse)
|
||||
mpos := draw.camera_convert_screen_to_world(&state.draw.cam, input.mouse)
|
||||
|
||||
//Setlect entity
|
||||
if is_key_pressed(state, glfw.MOUSE_BUTTON_LEFT)
|
||||
|
||||
Reference in New Issue
Block a user