920 Commits

Author SHA1 Message Date
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
Tad Hardesty
d202872280 Avoid cloning texture Arcs for every draw call 2018-09-10 22:01:26 -07:00
Tad Hardesty
e1a4bbc638 Add must_use to Image 2018-09-10 01:25:20 -07:00
Tad Hardesty
e9b1552f05 Make ImTexture a newtype for additional type safety 2018-09-10 00:59:55 -07:00
Tad Hardesty
fb7ea044e2 Split the ImTexture allocator into a generic struct 2018-09-10 00:54:00 -07:00
Tad Hardesty
456258524e Add simplest possible image support for gfx renderer 2018-09-10 00:40:02 -07:00
Malik Olivier Boussejra
4f080de586
Merge pull request #152 from SpaceManiac/patch/style-traits
Add Clone to ImGuiStyle
2018-09-10 15:37:41 +09:00
Tad Hardesty
7ddcbee1b3 Add Clone to ImGuiStyle 2018-09-09 19:10:08 -07:00
Joonas Javanainen
c5c9d6ff30
Bump minimum Rust version to 1.26 2018-09-07 00:04:57 +03:00
Joonas Javanainen
f1f02bc321
Relax glutin version range 2018-08-15 01:00:49 +03:00
Joonas Javanainen
1eab502d01
Add Drop implementation for Ui 2018-08-14 22:42:36 +03:00
Joonas Javanainen
1213feb800
Really don't run these doc tests 2018-08-14 01:01:07 +03:00
Joonas Javanainen
1fd0aeeae6
Fix doc tests in older Rust versions 2018-08-14 00:42:02 +03:00
Joonas Javanainen
f287ba048a
Don't run new doc tests 2018-08-13 23:51:29 +03:00
Joonas Javanainen
eeb800db13
imgui-glutin-support crate 2018-08-13 23:04:36 +03:00
Joonas Javanainen
b8a1abf1b7
Add mouse_down accessor function 2018-08-13 23:03:43 +03:00
Joonas Javanainen
cc17c0097d
Bump version to 0.0.21-pre 2018-08-13 23:00:40 +03:00
Joonas Javanainen
7824984543
Release: 0.0.20 2018-08-13 22:57:37 +03:00
Joonas Javanainen
f7ffac7c8d
Update CHANGELOG 2018-08-13 19:02:45 +03: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
6a4286de11
Fix clip rect clamping 2018-08-13 18:47:23 +03:00
Joonas Javanainen
21d85afee0
Remove deprecated things 2018-08-12 20:25:43 +03:00
Joonas Javanainen
2677cb0cb7
Bump version to 0.0.20-pre 2018-08-12 20:21:11 +03:00
Joonas Javanainen
af2171f93a
Release: 0.0.19 2018-08-12 20:17:56 +03:00
Joonas Javanainen
bea73a8fde
Don't listen to clippy 2018-08-12 19:33:17 +03:00
Joonas Javanainen
da9ee9302b
Fixes recommended by clippy 2018-08-12 19:20:14 +03:00
Joonas Javanainen
130ebfc931
Update changelog 2018-08-12 19:06:35 +03:00
Joonas Javanainen
ca34c8e9be
Update rustfmt instructions, delete config file 2018-08-12 19:01:26 +03:00
Joonas Javanainen
4ad173da3b
Upgrade example project dependencies 2018-08-12 18:59:17 +03:00
Joonas Javanainen
705b913a5d
Add simple font scaling to support code 2018-08-12 14:37:10 +03:00
Joonas Javanainen
81b784d69a
Glium has sane sampler defaults so just trust them 2018-08-12 14:25:01 +03:00
Joonas Javanainen
329f24d221
Fix compilation errors 2018-08-12 14:22:08 +03:00
Joonas Javanainen
319f7aa4c6
Reformat everything 2018-08-12 14:16:56 +03:00
Joonas Javanainen
558e5efe1c
Apply font oversampling in support code
Makes fonts slighty better with HiDPI, but it's not yet the full
solution.
2018-08-12 14:16:21 +03:00
Joonas Javanainen
aa4ae70054
Make HiDPI rendering better
+ use linear filtering in both renderers. Nearest just won't work
  anymore if we have a non-integer scaling factor (which winit can give
  us on 1440p screens for example)
+ pass around FrameSize which has the necessary info with full f64
  precision
+ extra care with conversions to/from f32 and u32 and rounding
2018-08-12 14:16:21 +03:00
Malik Olivier Boussejra
1663e66887
Merge pull request #145 from malikolivier/refactor-hello-gfx
Refactor hello gfx:
- Remove unused label on main loop
- Do not depend on imgui_sys
2018-08-12 18:03:20 +09:00
Malik Olivier Boussejra
10438c6000 [examples] hello_gfx: Remove dependency on sys crate
Before this commit, hello_gfx was dependent on sys, while it only uses
sys::ImVec4, which is a type that is anyway re-exported by imgui.
2018-08-12 10:50:00 +09:00