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
Malik Olivier Boussejra
2272fbe5e4
[examples] support_gfx: Remove unused label on loop
...
This loop is not nested, so the label has no use whatsoever.
2018-08-12 10:44:07 +09:00
Malik Olivier Boussejra
48364b77dd
Merge pull request #143 from malikolivier/142-fix-scale-bug
...
[examples] support: Fix scale bug
2018-08-11 07:07:30 +09:00
Malik Olivier Boussejra
1ac9c84ba2
[CHANGELOG] Add glium update
...
Include a word about WINIT_HIDPI_FACTOR=1.
2018-08-11 06:24:31 +09:00
Malik Olivier Boussejra
7f6e3ad286
[examples] support: Fix scale bug
...
The new version of glutin apparently changed the behaviour regarding
HDIPI.
Thanks to the patch submitted by semtexzv [1], this commit fixes the
issue.
[1] b6f5b27883
2018-08-10 14:35:13 +09:00
Joonas Javanainen
b8baa828a9
Merge pull request #141 from shockham/master
...
Update glium to 0.22
2018-08-08 21:53:50 +03:00
shockham
7152cf5b6a
Bump minimum rust version to 1.24
2018-08-08 09:20:44 +01:00
shockham
b1ebd720e7
Update gfx_window_glutin to 0.25, glium to 0.22 and glutin to 0.17 in imgui-examples and fix errors
2018-07-30 17:44:28 +01:00
shockham
ebc81d2767
Update glium to 0.22
2018-07-30 17:01:02 +01:00
Malik Olivier Boussejra
4944ee618d
Merge pull request #120 from informationsea/feature/multiline-text-input
...
Add inputTextMultiline Widget
2018-07-12 05:46:26 +09:00
OKAMURA, Yasunobu
8c5fc8242e
fix typo
2018-07-11 20:02:34 +09:00
OKAMURA, Yasunobu
1070ec5b7c
Merge remote-tracking branch 'upstream/master' into feature/multiline-text-input
2018-07-09 20:25:09 +09:00
Malik Olivier Boussejra
cfb54ee30e
Merge pull request #138 from michaelfairley/tree_flags
...
Allow setting flags on tree nodes
2018-06-26 17:23:26 +09:00
OKAMURA, Yasunobu
72ef7f681e
fix conflict
2018-06-22 21:28:37 +09:00
Michael Fairley
972769a0f4
Allow setting flags on tree nodes
2018-06-08 14:48:36 -05:00
Joonas Javanainen
a8cd16ef90
Merge pull request #137 from Gekkio/feature/drawdata-renderer
...
Renderers take DrawData, not DrawList
2018-06-03 20:25:50 +03:00
Joonas Javanainen
d8676b90de
Merge pull request #133 from michaelfairley/pushid_overloads_take3
...
Allow using strings and pointers with push_id
2018-06-03 20:25:31 +03:00
Michael Fairley
3a070ff124
Remove use of rust feature newer than oldest supported version
2018-06-03 10:28:54 -05:00
Joonas Javanainen
9537fd83b3
Render callback should be FnOnce
...
The callback is no longer called multiple times
2018-06-03 11:27:10 +03:00
Joonas Javanainen
70370611e5
Renderers take DrawData, not DrawList
2018-06-03 11:21:13 +03:00
Malik Olivier Boussejra
a275c1d656
Merge pull request #136 from tekknolagi/patch-1
...
[examples] Fix type in hello_world
2018-06-03 15:06:07 +09:00
Max Bernstein
d24ae372b2
Fix small typo
2018-06-02 22:28:07 -07:00
Malik Olivier Boussejra
216e97a2b2
Merge pull request #135 from malikolivier/mouse-helper-functions
...
Wrap mouse helper functions: is_mouse_double_clicked, is_mouse_released
2018-06-02 19:51:31 +09:00
Malik Olivier Boussejra
d42f789fef
Merge pull request #134 from malikolivier/105-get-keyboard-input
...
[ImGui] Add helper functions for keyboard keys
User still needs to use get_key_index to get the value of user_key_index for each key, similar to what is done in the original imgui.
This is not very convenient but it allows to be back-end independent.
Fix #105
2018-06-02 19:50:27 +09:00
Malik Olivier Boussejra
f0b3010684
Merge pull request #125 from malikolivier/draw_list_add_methods
...
window_draw_list: Add support for drawing text
2018-06-02 19:48:50 +09:00
Malik Olivier Boussejra
7b80950782
[ImGui] Add helper function "is_mouse_released"
2018-06-02 14:31:22 +09:00
Malik Olivier Boussejra
b62cd2eca8
[ImGui] Add helper function "is_mouse_double_clicked"
2018-06-02 14:31:05 +09:00
Malik Olivier Boussejra
91a2648740
[ImGui] Add helper functions for keyboard keys
...
Can check whether a keyboard key is pressed or not.
2018-06-02 14:14:14 +09:00
Michael Fairley
3655dfa081
Allow using strings and pointers with push_id
2018-05-31 11:25:51 -05:00
Malik Olivier Boussejra
9b0804f6be
window_draw_list: Use c_char instead of i8
...
Target expects a c_char, which happens to be an i8 on x86, but it may be
something else on other platforms (e.g. u8 on ARM).
2018-05-30 14:39:37 +09:00
Malik Olivier Boussejra
485c8a230e
window_draw_list: Use generic to add_text
...
This change allows to use `add_text` with any type that implements
`AsRef<str>`. This includes `String`, `&str`, `ImString` and `&ImStr`.
2018-05-30 14:23:43 +09:00
Joonas Javanainen
37d556ce3b
Merge pull request #131 from malikolivier/imgui-add-mouse-wheel
...
[ImGui] Add helper function to get mouse wheel delta
2018-05-30 08:03:56 +03:00