606 Commits

Author SHA1 Message Date
Malik Olivier Boussejra
77c79f4e61
Merge pull request #171 from malikolivier/patch-use-support-glutin-exclude-examples
Use imgui-glutin-support in examples and split examples [use "exclude" Cargo.toml feature]

This implement the suggestions discussed in #163 and #168.

- Use imgui-glutin-support crate in all examples.
- Exclude examples from the main workspace to prevent glutin version conflicts
- Allow setting HIDPI factor to imgui-glutin-support crate for current examples to work on all platform.

Then, I committed a working Cargo.lock for the examples so that the correct version of glutin be selected in all cases.
2018-11-07 08:14:40 +01:00
Malik Olivier Boussejra
b18fb57020 [travis] Add build test for examples
The examples are excluded from the workspace, so we need to add the
command to build them.
2018-11-01 08:03:39 +09:00
Malik Olivier Boussejra
55cddf955a [examples] Add Cargo.lock 2018-11-01 08:02:53 +09:00
Malik Olivier Boussejra
b6a70564a7 [Cargo.toml] Exclude examples from workspace 2018-11-01 07:57:59 +09:00
Malik Olivier Boussejra
5afcc937fe [gfx-examples] Use imgui-glutin-support 2018-10-29 03:06:08 +09:00
Malik Olivier Boussejra
ab86948e22 [glium-examples] support: Use imgui-glutin-support 2018-10-29 03:06:08 +09:00
Malik Olivier Boussejra
46cf67e89c [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.
2018-10-29 03:06:05 +09:00
Malik Olivier Boussejra
378447e380 [imgui-glutin-support] Allow to set app's HIDPI factor 2018-10-29 02:44:33 +09:00
Malik Olivier Boussejra
19ab82e521 [imgui-glutin-support] get_frame_size: Pass immutable Window
There is no reason to pass an immutable window, as the function does not
mutate it.
2018-10-29 02:44:33 +09:00
Joonas Javanainen
4da1e5f54a
Add explicit OpenGL 3.2 support
Some old OS X environments refuse to work with OpenGL 3.0 even though
they support later versions.
2018-10-28 12:19:17 +02:00
Joonas Javanainen
1750aa5e72
Fix ImGuiIO struct layout problems
ImGuiNavInput::COUNT doesn't include the internal enum values, so
the struct layout of ImGuiIO was wrong
2018-10-18 17:52:57 +03:00
Joonas Javanainen
8bf6831f5f
Let's try the new Travis Windows build environment 2018-10-15 20:00:54 +03:00
Joonas Javanainen
c9b03816d4
Minor clippy fixes 2018-10-13 00:41:13 +03:00
Joonas Javanainen
cddef5ee34
imgui-glium-renderer: stop reusing vertex/index buffers
For some reason, index buffer recycling leads in some cases to 100% CPU
usage due to some OpenGL synchronization stuff I don't fully understand.
2018-10-13 00:33:49 +03:00
Joonas Javanainen
411a7c7514
Merge pull request #164 from Gekkio/feature/cimgui-1.65.2
Upgrade to imgui 1.65 + cimgui 1.65.2
2018-10-13 00:32:59 +03:00
Joonas Javanainen
c1e4641b2f
Fix support_gfx font load order 2018-10-12 23:56:46 +03:00
Joonas Javanainen
578eaf7373
Update documentation 2018-10-12 22:47:20 +03:00
Joonas Javanainen
b4edc01574
Adapt to 1.65 changes 2018-10-12 22:41:15 +03:00
Joonas Javanainen
5372ba869f
Update all functions 2018-10-12 22:04:19 +03:00
Joonas Javanainen
cf5b0ece7d
Update all structs 2018-10-12 22:04:19 +03:00
Joonas Javanainen
31ca649b74
Update all flag types 2018-10-12 21:52:29 +03:00
Joonas Javanainen
e328fdb059
Update all normal C-style enum types 2018-10-12 19:38:39 +03:00
Joonas Javanainen
b1c7a03415
Use cimgui 1.65.2 2018-10-12 19:38:39 +03:00
Joonas Javanainen
9734b5ccb4
Split enums and flags to separate files 2018-10-12 19:38:39 +03:00
Joonas Javanainen
f088b4ee1b
Bump version to 0.0.22-pre 2018-10-11 23:17:59 +03:00
Joonas Javanainen
c85e73eca6
Release: 0.0.21 2018-10-11 23:14:38 +03:00
Joonas Javanainen
3a4f6b2c17
Update changelog 2018-10-11 19:37:16 +03:00
Joonas Javanainen
450aa6fe93
Saner Travis cache 2018-10-10 21:04:05 +03:00
Joonas Javanainen
6ccfbf0305
Merge pull request #154 from SpaceManiac/patch/textures
Add custom texture support (both renderers)
2018-10-05 20:43:17 +03:00
Joonas Javanainen
6d6577bdc4
Merge pull request #160 from SpaceManiac/patch/key_super
Add missing key_super method
2018-10-01 22:14:55 +03:00
Malik Olivier Boussejra
6bdb191560
Merge pull request #161 from malikolivier/patch-wrap-popup-modals
Wrap PopupModal
2018-09-29 21:55:52 +09:00
Malik Olivier Boussejra
e483fa247c [PopupModal] Fix call to igEndPopup 2018-09-28 14:32:52 +09:00
Malik Olivier Boussejra
4f360b8edf [examples] test_window_impl: Add "Close" button to stacked modals
The "Close" button was forgotten in previous commits.
2018-09-28 13:36:15 +09:00
Malik Olivier Boussejra
4e328d3bba [CHANGELOG] Add popup modal 2018-09-26 14:29:32 +09:00
Malik Olivier Boussejra
add8bdbd16 [Ui] Add documentation for Ui::close_current_group 2018-09-26 14:28:02 +09:00
Malik Olivier Boussejra
88b5b2e3f5 [popup_modal] Add documentation 2018-09-26 14:27:35 +09:00
Malik Olivier Boussejra
ae9a79bd50 [examples] test_window_impl: Add "stacked modals" example 2018-09-26 09:50:19 +09:00
Malik Olivier Boussejra
68b1d331b0 [examples] test_window_impl: Add buttons to close modal 2018-09-26 09:50:13 +09:00
Malik Olivier Boussejra
2bec5ae4ed [examples] test_window_impl: Add part of "modals" example 2018-09-26 09:50:10 +09:00
Malik Olivier Boussejra
4b21834799 [PopupModal] Allow to set flags 2018-09-26 09:50:07 +09:00
Malik Olivier Boussejra
e68047efd1 [Ui] Add popup_modal wrapper 2018-09-26 09:50:03 +09:00
Tad Hardesty
cbe118f4ec Add missing key_super method 2018-09-20 09:33:56 -07:00
Tad Hardesty
d90d377e70 Report rather than swallowing bad texture ids 2018-09-19 22:34:03 -07:00
Tad Hardesty
a2b69395d1 Rename set_texture_id to set_font_texture_id 2018-09-19 22:29:04 -07:00
Tad Hardesty
bdbdfe58e3 Return previous values from replace and remove 2018-09-19 22:27:27 -07:00
Malik Olivier Boussejra
b98e57d055
Merge pull request #158 from malikolivier/patch-wrap-get_window_pos
Wrap igGetWindowPos and update CHANGELOG
2018-09-19 17:17:01 +09:00
Malik Olivier Boussejra
a893f3e665 Update CHANGELOG 2018-09-19 09:53:15 +09:00
Malik Olivier Boussejra
d62845f4c2 [ImGui] Wrap igGetWindowPos 2018-09-19 09:51:17 +09:00
Malik Olivier Boussejra
c2f3936879
Merge pull request #156 from malikolivier/patch-wrap-is-window-focus
[ImGui] Wrap igIsWindowFocused
2018-09-19 08:37:55 +09:00
Malik Olivier Boussejra
3b26f6bde9 [ImGui] Wrap igIsWindowFocused
Wrap with three different functions, one for each of the possible values of
ImGuiFocusedFlags given as argument to igIsWindowFocused.
2018-09-13 18:49:33 +09:00