Joonas Javanainen
46d099f40f
Require explicit ending/popping of almost all stack tokens
...
This is probably going to be controversial...
Calling end/pop in the Drop implementation causes way too many problems,
and interacts very badly with panics.
There are closure-based simpler implementations of almost everything
except parameter stacks that are still convenient to use. However, if we
end up switching to &mut Ui in most functions (very much possible in the
future!), closures will complicate matters so push/pop and begin/end
pairs are still relevant.
2019-07-13 17:19:32 +03:00
Joonas Javanainen
83c2503134
Redesign menu API
2019-07-13 15:28:51 +03:00
Joonas Javanainen
664efd91a7
Redesign sliders
2019-07-13 14:59:25 +03:00
Joonas Javanainen
baa9362a25
Redesign selectable API
2019-07-13 13:11:51 +03:00
Joonas Javanainen
c0b9571160
Redesign combo box API
2019-07-13 12:42:35 +03:00
Joonas Javanainen
f05fd62c30
Update image / image button API
2019-07-13 10:54:27 +03:00
Joonas Javanainen
f4549d93ac
Redesign child window API
2019-07-13 00:54:03 +03:00
Joonas Javanainen
c791ad214d
Add radio button example
2019-07-12 21:01:12 +03:00
Joonas Javanainen
f1c041b3f3
Update layout API
2019-07-12 20:59:41 +03:00
Joonas Javanainen
11b6932714
Pull new color editor/picker API from 0.1-dev
2019-07-12 20:18:44 +03:00
Joonas Javanainen
6ad52c517b
Pull new progress bar API from 0.1-dev
2019-07-12 20:15:08 +03:00
Joonas Javanainen
7f10cb35b2
Pull new window API from 0.1-dev
2019-07-12 19:43:39 +03:00
Joonas Javanainen
0132ab5207
Go back to unprefixed *Renderer and *RendererError names
...
Prefixing wasn't supposed to end up in master
2019-07-08 18:07:21 +03:00
Joonas Javanainen
3f6bc12e0b
Pull clipboard support from 0.1-dev
2019-07-08 17:47:36 +03:00
Joonas Javanainen
93d1ff259c
Fix examples
2019-07-07 14:25:47 +03:00
Joonas Javanainen
0f15b80fdb
Add multiple_fonts example
2019-07-01 00:10:32 +03:00
Joonas Javanainen
ba681d2e82
Reformat
2019-07-01 00:10:21 +03:00
Joonas Javanainen
965dd40876
Pull parameter stack updates from 0.1-dev
2019-06-30 23:29:18 +03:00
Joonas Javanainen
b0e37f7a22
Use non-deprecated functions
2019-06-29 13:31:32 +03:00
Joonas Javanainen
9e3cd1681c
Renderers accept DrawData directly
...
There's no need to pass Ui, which makes this alternative much more
flexible.
2019-06-29 13:30:13 +03:00
Joonas Javanainen
09f4ad6cf0
Use only file names in example window titles
2019-06-29 12:49:23 +03:00
Joonas Javanainen
cebe02cb11
Pull font API and associated refactoring from 0.1-dev
2019-06-29 12:45:16 +03:00
Joonas Javanainen
109e232422
Abolish ImVec2/ImVec4 from safe APIs
...
[f32; 2] and [f32; 4] are now the canonical types
2019-06-28 00:05:10 +03:00
Joonas Javanainen
6acd52384a
Tidy up utility functions and deprecate old functions
2019-06-27 22:57:32 +03:00
Joonas Javanainen
1cd61f2a83
Fix custom_textures example
2019-06-27 22:26:23 +03:00
Joonas Javanainen
d9e5ea37e7
Update examples, glium is the leading renderer again
2019-06-27 22:12:35 +03:00
Joonas Javanainen
42d3c0f6d7
Pull renderer/draw data updates from 0.1-dev
2019-06-27 22:12:35 +03:00
Joonas Javanainen
721bf46746
Pull input+winit stuff from 0.1-dev
2019-06-27 22:12:35 +03:00
Joonas Javanainen
9516e622be
Pull first part of 0.1 context API
2019-06-27 18:18:57 +03:00
Joonas Javanainen
92de1588f2
Use generated and wrapped style structs/enums
2019-06-27 17:55:33 +03:00
Joonas Javanainen
f7a7961cee
Replace ImCond with Condition
2019-06-27 17:29:09 +03:00
Michael Tang
d11e008aa0
Add DirectX support behind feature flag
2019-04-21 19:41:14 -07:00
Michael Tang
616d61767f
WIP hlsl support
2019-04-13 20:44:03 -07:00
Joonas Javanainen
91a961e06a
Use more 2018 edition idioms
2018-12-31 12:16:28 +02:00
Joonas Javanainen
0d878e1ecb
Upgrade dependencies in examples
2018-12-31 12:00:24 +02:00
Joonas Javanainen
eb5aaf1c2a
Replace imgui-glutin-support with imgui-winit-support
2018-12-16 12:02:42 +02:00
Malik Olivier Boussejra
7268d35be7
[gfx_examples] Update glutin to 0.19.0
...
Attempt to fix #172 for gfx back-end.
2018-12-01 17:57:54 +09:00
Malik Olivier Boussejra
ecffa09e84
[examples] Have examples share font resources
...
We do not keep a copy of the same file in two different places.
Let's move the resources to the same directory.
2018-11-23 16:56:47 +09:00
Malik Olivier Boussejra
5afcc937fe
[gfx-examples] 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
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
c1e4641b2f
Fix support_gfx font load order
2018-10-12 23:56:46 +03:00
Joonas Javanainen
b4edc01574
Adapt to 1.65 changes
2018-10-12 22:41:15 +03: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
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
Joonas Javanainen
c22035250a
Restrict DPI factor to integers in support code
...
The library still supports fractional DPI factors, but it seems like a
good idea to use integer factors in examples to avoid blurry fonts and
other issues which might give the wrong impression.
2018-08-13 19:00:31 +03:00
Joonas Javanainen
21d85afee0
Remove deprecated things
2018-08-12 20:25:43 +03:00
Joonas Javanainen
da9ee9302b
Fixes recommended by clippy
2018-08-12 19:20:14 +03:00