update imgui 0.6

This commit is contained in:
Benedikt Mandelkow 2020-11-23 00:30:06 +01:00 committed by 4bb4
parent 07ff32ea2a
commit c5ec153488
7 changed files with 20 additions and 17 deletions

View file

@ -12,7 +12,7 @@ readme = "README.md"
[dependencies]
implot-sys = { version = "0.2.0", path = "implot-sys" }
imgui = { version = "0.5.0" }
imgui = { version = "0.6.0" }
bitflags = "1.0"
parking_lot = "0.11"
lazy_static = "1.1"

View file

@ -8,4 +8,4 @@ edition = "2018"
[dependencies]
implot = { path = "../../" }
imgui = "0.5.0"
imgui = "0.6.0"

View file

@ -11,12 +11,12 @@ publish = false
[dependencies]
clipboard = "0.5"
glium = { version = "0.27", default-features = true }
glium = { version = "0.28", default-features = true }
image = "0.23"
imgui-sys = "0.5.0"
imgui = "0.5.0"
imgui-glium-renderer = "0.5.0"
imgui-winit-support = "0.5.0"
imgui-sys = "0.6.0"
imgui = "0.6.0"
imgui-glium-renderer = "0.6.0"
imgui-winit-support = "0.6.0"
implot-sys = { path = "../../implot-sys" }
implot = { path = "../../" }

View file

@ -8,9 +8,9 @@ edition = "2018"
implot = { path = "../../" }
wgpu = "^0.6.0"
winit = "^0.22.2" # opening windows and handling input
winit = "^0.23" # opening windows and handling input
futures = "^0.3.5" # executing async functions using blocking executor
imgui = "^0.5.0"
imgui-winit-support = "^0.5.0" # connection of input (keys) to imgui
imgui-wgpu = "^0.11.0" # imgui backend for drawing using wgpu
imgui = "^0.6.0"
imgui-winit-support = "^0.6.0" # connection of input (keys) to imgui
imgui-wgpu = "^0.12.0" # imgui backend for drawing using wgpu
examples-shared = { path = "../examples-shared" }

View file

@ -63,7 +63,7 @@ pub fn init(title: &str) -> System {
// Set up swap chain
let sc_desc = wgpu::SwapChainDescriptor {
usage: wgpu::TextureUsage::OUTPUT_ATTACHMENT,
format: wgpu::TextureFormat::Bgra8Unorm,
format: wgpu::TextureFormat::Bgra8UnormSrgb,
width: size.width,
height: size.height,
present_mode: wgpu::PresentMode::Mailbox,
@ -99,9 +99,12 @@ pub fn init(title: &str) -> System {
//
// Set up dear imgui wgpu renderer
//
let renderer = RendererConfig::new()
.set_texture_format(sc_desc.format)
.build(&mut imgui, &device, &queue);
let renderer_config = RendererConfig {
texture_format: sc_desc.format,
..Default::default()
};
let renderer = Renderer::new(&mut imgui, &device, &queue, renderer_config);
System {
event_loop,

View file

@ -6,4 +6,4 @@ edition = "2018"
[dependencies]
bindgen = "0.55.1"
imgui-sys = { version = "0.5.0" }
imgui-sys = { version = "0.6.0" }

View file

@ -12,7 +12,7 @@ build = "build.rs"
links = "implot"
[dependencies]
imgui-sys = "0.5.0"
imgui-sys = "0.6.0"
[build-dependencies]
cc = "1.0"