docs: align cargo run examples with CLI default-run #18
@@ -4,6 +4,9 @@
|
|||||||
# Local research/extraction scratch
|
# Local research/extraction scratch
|
||||||
/.work/
|
/.work/
|
||||||
|
|
||||||
|
# Checked-in demo script outputs
|
||||||
|
/examples/demo-render.png
|
||||||
|
|
||||||
# Proprietary/local reference payloads. Keep these locally only.
|
# Proprietary/local reference payloads. Keep these locally only.
|
||||||
/reference/
|
/reference/
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
|
default-run = "openvistapro"
|
||||||
name = "openvistapro"
|
name = "openvistapro"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ cargo run -- render --preset hill --quality final --output /tmp/openvistapro-ren
|
|||||||
cargo run --features app --bin openvistapro_app
|
cargo run --features app --bin openvistapro_app
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The crate’s default `cargo run` target is the CLI binary (`openvistapro`), so the commands above work without an extra `--bin` flag. Use `--features app --bin openvistapro_app` for the optional GUI shell.
|
||||||
|
|
||||||
The optional app shell is gated behind the `app` feature so default CLI builds stay GPU-free.
|
The optional app shell is gated behind the `app` feature so default CLI builds stay GPU-free.
|
||||||
It opens an `eframe`/`egui` window titled `OpenVistaPro` with scene controls, top-level menus/dialogs, and a CPU-rendered terrain preview.
|
It opens an `eframe`/`egui` window titled `OpenVistaPro` with scene controls, top-level menus/dialogs, and a CPU-rendered terrain preview.
|
||||||
The native shell uses eframe's Glow renderer under X11/Xvfb, which keeps the app smoke launch independent of WGPU backend feature selection.
|
The native shell uses eframe's Glow renderer under X11/Xvfb, which keeps the app smoke launch independent of WGPU backend feature selection.
|
||||||
|
|||||||
Reference in New Issue
Block a user