From 56e59212ca6da9b8d3876c7a5fe356d9b20215e6 Mon Sep 17 00:00:00 2001 From: Piotr Date: Sun, 27 Sep 2020 23:26:32 +0200 Subject: [PATCH] Enable imgui --- Cargo.toml | 2 +- src/gaia/engine.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 30f70f0..00ddcae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ simple-logging = "2.0.2" image2 = { git = "https://github.com/Leinnan/image2-rs", branch="legacy", default-features = false, features=["io"] } [features] -default = ["no_imgui"] +default = ["imgui_inspect"] imgui_inspect = ["imgui-inspect-derive", "imgui-inspect", "imgui-glfw-rs"] no_imgui = ["glfw"] diff --git a/src/gaia/engine.rs b/src/gaia/engine.rs index 717a5e8..de3873f 100644 --- a/src/gaia/engine.rs +++ b/src/gaia/engine.rs @@ -7,15 +7,14 @@ use crate::gaia::framebuffer::FramebufferSystem; use cgmath::Point3; #[cfg(feature = "no_imgui")] use glfw; -use glfw::{Action, Context, Key}; -#[cfg(feature = "imgui_inspect")] -use imgui_glfw_rs::glfw; #[cfg(feature = "imgui_inspect")] use imgui_glfw_rs::glfw; #[cfg(feature = "imgui_inspect")] use imgui_glfw_rs::imgui; #[cfg(feature = "imgui_inspect")] use imgui_glfw_rs::ImguiGLFW; + +use glfw::{Action, Context, Key}; use log::{info, trace, warn}; pub struct Engine {