diff options
| author | Valentin Popov <valentin@popov.link> | 2026-02-19 15:07:01 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-02-19 15:07:01 +0300 |
| commit | 4ef08d0bf6366b0bc8ccb6357b794937411f74cc (patch) | |
| tree | d733ac655029b10e466c450be25c63e156f40773 /crates/render-mission-demo/Cargo.toml | |
| parent | 598137ed132d95a3e3bf9b95e9e27286cc2186ac (diff) | |
| download | fparkan-4ef08d0bf6366b0bc8ccb6357b794937411f74cc.tar.xz fparkan-4ef08d0bf6366b0bc8ccb6357b794937411f74cc.zip | |
feat: add terrain-core, tma, and unitdat crates with parsing functionality
- Introduced `terrain-core` crate for loading and processing terrain mesh data.
- Added `tma` crate for parsing mission files, including footer and object records.
- Created `unitdat` crate for reading unit data files with validation of structure.
- Implemented error handling and tests for all new crates.
- Documented object registry format and rendering pipeline in specifications.
Diffstat (limited to 'crates/render-mission-demo/Cargo.toml')
| -rw-r--r-- | crates/render-mission-demo/Cargo.toml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/crates/render-mission-demo/Cargo.toml b/crates/render-mission-demo/Cargo.toml new file mode 100644 index 0000000..d658212 --- /dev/null +++ b/crates/render-mission-demo/Cargo.toml @@ -0,0 +1,33 @@ +[package] +name = "render-mission-demo" +version = "0.1.0" +edition = "2021" + +[features] +default = [] +demo = ["dep:sdl2", "dep:glow"] + +[dependencies] +encoding_rs = "0.8" +glow = { version = "0.16", optional = true } +nres = { path = "../nres" } +render-core = { path = "../render-core" } +render-demo = { path = "../render-demo" } +tma = { path = "../tma" } +terrain-core = { path = "../terrain-core" } +texm = { path = "../texm" } +unitdat = { path = "../unitdat" } + +[dev-dependencies] +common = { path = "../common" } + +[target.'cfg(target_os = "macos")'.dependencies] +sdl2 = { version = "0.37", optional = true, default-features = false, features = ["use-pkgconfig"] } + +[target.'cfg(not(target_os = "macos"))'.dependencies] +sdl2 = { version = "0.37", optional = true, default-features = false, features = ["bundled", "static-link"] } + +[[bin]] +name = "parkan-render-mission-demo" +path = "src/main.rs" +required-features = ["demo"] |
