diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Cargo.toml | 17 | ||||
-rw-r--r-- | examples/README.md | 10 | ||||
-rw-r--r-- | examples/tour/main.rs | 2 |
3 files changed, 6 insertions, 23 deletions
diff --git a/examples/Cargo.toml b/examples/Cargo.toml deleted file mode 100644 index fdf854cd..00000000 --- a/examples/Cargo.toml +++ /dev/null @@ -1,17 +0,0 @@ -[package] -name = "iced_examples" -version = "0.0.0" -authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"] -publish = false -edition = "2018" - -[[bin]] -name = "tour" -path = "tour/main.rs" - -[dependencies] -iced = { version = "0.1.0-alpha", path = "../core" } - -# A personal `ggez` fork that introduces a `FontCache` type to measure text -# efficiently and fixes HiDPI issues. -ggez = { version = "0.5", git = "https://github.com/hecrj/ggez.git" } diff --git a/examples/README.md b/examples/README.md index 0a8a126e..2032df49 100644 --- a/examples/README.md +++ b/examples/README.md @@ -26,16 +26,16 @@ The implementation consists of different modules: the [`renderer`]. ``` -cargo run --example tour +cargo run --package iced_ggez_tour ``` [![Tour - Iced][gui_gif]][gui_gfycat] [`ggez`]: https://github.com/ggez/ggez -[`tour`]: tour/tour.rs -[`renderer`]: tour/renderer -[`widget`]: tour/widget.rs -[`main`]: tour/main.rs +[`tour`]: tour/src/tour.rs +[`renderer`]: tour/src/renderer +[`widget`]: tour/src/widget.rs +[`main`]: tour/src/main.rs [personal fork]: https://github.com/hecrj/ggez [add a `FontCache` type]: https://github.com/ggez/ggez/pull/679 [fix some issues with HiDPI]: https://github.com/hecrj/ggez/commit/dfe2fd2423c51a6daf42c75f66dfaeaacd439fb1 diff --git a/examples/tour/main.rs b/examples/tour/main.rs index ce477fd9..571bc2e2 100644 --- a/examples/tour/main.rs +++ b/examples/tour/main.rs @@ -27,7 +27,7 @@ pub fn main() -> ggez::GameResult { filesystem::mount( context, std::path::Path::new(&format!( - "{}/resources", + "{}/examples/resources", env!("CARGO_MANIFEST_DIR") )), true, |