Enable imgui

This commit is contained in:
Piotr 2020-09-27 23:26:32 +02:00
parent cfcd1bf243
commit 56e59212ca
2 changed files with 3 additions and 4 deletions

View File

@ -23,7 +23,7 @@ simple-logging = "2.0.2"
image2 = { git = "https://github.com/Leinnan/image2-rs", branch="legacy", default-features = false, features=["io"] } image2 = { git = "https://github.com/Leinnan/image2-rs", branch="legacy", default-features = false, features=["io"] }
[features] [features]
default = ["no_imgui"] default = ["imgui_inspect"]
imgui_inspect = ["imgui-inspect-derive", "imgui-inspect", "imgui-glfw-rs"] imgui_inspect = ["imgui-inspect-derive", "imgui-inspect", "imgui-glfw-rs"]
no_imgui = ["glfw"] no_imgui = ["glfw"]

View File

@ -7,15 +7,14 @@ use crate::gaia::framebuffer::FramebufferSystem;
use cgmath::Point3; use cgmath::Point3;
#[cfg(feature = "no_imgui")] #[cfg(feature = "no_imgui")]
use glfw; use glfw;
use glfw::{Action, Context, Key};
#[cfg(feature = "imgui_inspect")]
use imgui_glfw_rs::glfw;
#[cfg(feature = "imgui_inspect")] #[cfg(feature = "imgui_inspect")]
use imgui_glfw_rs::glfw; use imgui_glfw_rs::glfw;
#[cfg(feature = "imgui_inspect")] #[cfg(feature = "imgui_inspect")]
use imgui_glfw_rs::imgui; use imgui_glfw_rs::imgui;
#[cfg(feature = "imgui_inspect")] #[cfg(feature = "imgui_inspect")]
use imgui_glfw_rs::ImguiGLFW; use imgui_glfw_rs::ImguiGLFW;
use glfw::{Action, Context, Key};
use log::{info, trace, warn}; use log::{info, trace, warn};
pub struct Engine { pub struct Engine {