Merge pull request #15 from TGotwig/Perform-benchmarks

Add `env_logger` to tour example
This commit is contained in:
Héctor Ramón 2019-09-16 14:28:24 +02:00 committed by GitHub
commit ece4b1fbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
/target
**/*.rs.bk
Cargo.lock
Cargo.lock

View File

@ -28,3 +28,4 @@ winit = { version = "0.20.0-alpha3", optional = true }
# 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" }
env_logger = "0.6"

View File

@ -13,6 +13,8 @@ use ggez::graphics;
use ggez::input::mouse;
pub fn main() -> ggez::GameResult {
env_logger::init();
let (context, event_loop) = {
&mut ggez::ContextBuilder::new("iced", "ggez")
.window_mode(ggez::conf::WindowMode {