wip: Changes of the week

- Move engine to a different crate
- Add engine trait
- Refactor the rest of the codebase to work with these changes
- Add debug ui buffer, use it to finish imgui support
This commit is contained in:
reo 2025-09-07 17:00:04 +03:00
parent 3fd5b09a94
commit 15122b8ebd
20 changed files with 344 additions and 117 deletions

114
Cargo.lock generated
View file

@ -245,6 +245,12 @@ dependencies = [
"libc",
]
[[package]]
name = "chlorine"
version = "1.0.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c00d31b1d19317b4777ec879192d3745bd97d05262b4b19cb1dda284b9d22f19"
[[package]]
name = "combine"
version = "4.6.7"
@ -642,6 +648,51 @@ dependencies = [
"zune-jpeg",
]
[[package]]
name = "imgui"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8addafa5cecf0515812226e806913814e02ce38d10215778082af5174abe5669"
dependencies = [
"bitflags 1.3.2",
"cfg-if",
"imgui-sys",
"mint",
"parking_lot",
]
[[package]]
name = "imgui-glium-renderer"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "781e53a393214a132c89c62e6e4b817645ad38832d3e334b2ad543f2c3df5106"
dependencies = [
"glium",
"imgui",
]
[[package]]
name = "imgui-sys"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ead193f9f4b60398e8b8f4ab1483e2321640d87aeebdaa3e5f44c55633ccd804"
dependencies = [
"cc",
"cfg-if",
"chlorine",
"mint",
]
[[package]]
name = "imgui-winit-support"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff7fcccfa9efab56c94274c0fec9939bb14149342b49e6a425883a5b7dda6a3f"
dependencies = [
"imgui",
"winit",
]
[[package]]
name = "indexmap"
version = "2.10.0"
@ -757,6 +808,16 @@ version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12"
[[package]]
name = "lock_api"
version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96936507f153605bddfcda068dd804796c84324ed2510809e5b2a624c81da765"
dependencies = [
"autocfg",
"scopeguard",
]
[[package]]
name = "log"
version = "0.4.27"
@ -797,6 +858,12 @@ dependencies = [
"simd-adler32",
]
[[package]]
name = "mint"
version = "0.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e53debba6bda7a793e5f99b8dacf19e626084f525f7829104ba9898f367d85ff"
[[package]]
name = "ndk"
version = "0.9.0"
@ -1137,6 +1204,29 @@ dependencies = [
"ttf-parser",
]
[[package]]
name = "parking_lot"
version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70d58bf43669b5795d1576d0641cfb6fbb2057bf629506267a92807158584a13"
dependencies = [
"lock_api",
"parking_lot_core",
]
[[package]]
name = "parking_lot_core"
version = "0.9.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bc838d2a56b5b1a6c25f55575dfc605fabb63bb2365f6c2353ef9159aa69e4a5"
dependencies = [
"cfg-if",
"libc",
"redox_syscall 0.5.17",
"smallvec",
"windows-targets 0.52.6",
]
[[package]]
name = "percent-encoding"
version = "2.3.1"
@ -1253,6 +1343,7 @@ name = "raidillon_core"
version = "0.1.0"
dependencies = [
"hecs",
"imgui",
"indexmap",
"raidillon_assets",
"winit",
@ -1266,6 +1357,18 @@ dependencies = [
"raidillon_assets",
]
[[package]]
name = "raidillon_engine"
version = "0.1.0"
dependencies = [
"hecs",
"indexmap",
"raidillon_assets",
"raidillon_core",
"raidillon_platform",
"winit",
]
[[package]]
name = "raidillon_game"
version = "0.1.0"
@ -1274,6 +1377,7 @@ dependencies = [
"raidillon_assets",
"raidillon_core",
"raidillon_ecs",
"raidillon_engine",
"raidillon_glium",
"raidillon_platform",
]
@ -1286,10 +1390,14 @@ dependencies = [
"glam",
"glium",
"gltf",
"imgui",
"imgui-glium-renderer",
"imgui-winit-support",
"indexmap",
"raidillon_assets",
"raidillon_core",
"raidillon_ecs",
"raidillon_engine",
"raidillon_platform",
"winit",
]
@ -1387,6 +1495,12 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
[[package]]
name = "scopeguard"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "sctk-adwaita"
version = "0.10.1"