[imgui-examples] Split glium and gfx examples into separate crates

To avoid conflicts in dependency version, this commit put examples using
different renderers in different crates.

Especially, glium and gfx do not necessarily depend on the same version
of glutin.

We have two examples:
- imgui-examples (main examples, use gfx renderer here)
- imgui-glium-examples (basic hello_glium example + maybe some texture stuff)

Once vulcano support lands, we may add: imgui-vulkano-examples.

This commit currently only moves files around. We plan to use gfx as a
"main2 renderer for now on as gfx is more actively maintained that
glium. Subsequent commits will migrate some glium examples to gfx.
This commit is contained in:
Malik Olivier Boussejra 2018-10-20 05:34:25 +09:00
parent 378447e380
commit 46cf67e89c
11 changed files with 38 additions and 3 deletions

View File

@ -16,4 +16,11 @@ travis-ci = { repository = "Gekkio/imgui-rs" }
imgui-sys = { version = "0.0.22-pre", path = "imgui-sys" }
[workspace]
members = ["imgui-examples", "imgui-sys", "imgui-gfx-renderer", "imgui-glium-renderer", "imgui-glutin-support"]
members = [
"imgui-examples",
"imgui-glium-examples",
"imgui-sys",
"imgui-gfx-renderer",
"imgui-glium-renderer",
"imgui-glutin-support"
]

View File

@ -11,8 +11,6 @@ publish = false
[dev-dependencies]
gfx = "0.17"
gfx_window_glutin = "0.26"
glium = { version = "0.22", default-features = true }
glutin = "0.18"
imgui = { version = "0.0.22-pre", path = "../" }
imgui-gfx-renderer = { version = "0.0.22-pre", path = "../imgui-gfx-renderer" }
imgui-glium-renderer = { version = "0.0.22-pre", path = "../imgui-glium-renderer" }

View File

@ -0,0 +1,14 @@
[package]
name = "imgui-glium-examples"
version = "0.0.22-pre"
authors = ["Joonas Javanainen <joonas.javanainen@gmail.com>", "imgui-rs contributors"]
description = "imgui crate examples using Glium backend"
homepage = "https://github.com/Gekkio/imgui-rs"
repository = "https://github.com/Gekkio/imgui-rs"
license = "MIT/Apache-2.0"
publish = false
[dev-dependencies]
glium = { version = "0.22", default-features = true }
imgui = { version = "0.0.22-pre", path = "../" }
imgui-glium-renderer = { version = "0.0.22-pre", path = "../imgui-glium-renderer" }

View File

@ -0,0 +1,16 @@
M+ FONTS Copyright (C) 2002-2017 M+ FONTS PROJECT
-
LICENSE_E
These fonts are free software.
Unlimited permission is granted to use, copy, and distribute them, with
or without modification, either commercially or noncommercially.
THESE FONTS ARE PROVIDED "AS IS" WITHOUT WARRANTY.
http://mplus-fonts.osdn.jp

Binary file not shown.