1671 Commits

Author SHA1 Message Date
dbr/Ben
d4a1e38261
Merge pull request #702 from rodrigorc/AddCallback
Add callbacks to the draw_list.
2023-04-05 19:35:58 +09:30
Rodrigo Rivas Costa
08b1b89974 Add a glow-renderer example with an FBO and a callback. 2023-04-04 20:37:03 +02:00
Rodrigo Rivas Costa
1484742ab5 imgui_glow_renderer::AutoRender::gl is now an Rc<glow::Context>.
It can be cloned and stored on drawing callbacks, for example.
2023-04-04 20:37:03 +02:00
Rodrigo Rivas Costa
2fcfdd55f4 Add callbacks to the draw_list. 2023-04-04 10:00:01 +02:00
dbr/Ben
df331ba574
Merge pull request #721 from jbrd/OwnedDrawData-PR
Issue #687: Add OwnedDrawData for deep cloning DrawData
2023-04-03 23:10:21 +09:30
James Bird
c497742196 Fix linter warnings. Switch test to sys::igGetIO() 2023-04-03 08:10:01 +01:00
James Bird
84731273ca Add OwnedDrawData for deep cloning DrawData 2023-03-28 12:49:16 +01:00
dbr/Ben
9009022e02
Merge pull request #718 from dbr/msrv164
Bump MSRV to 1.64
2023-03-22 23:39:11 +10:30
dbr/Ben
7bade088b1
Merge pull request #715 from reduf/replace-crate-capture-by-copypasta
Replaced crate "clipboard" by "copypasta"
2023-03-22 23:13:29 +10:30
dbr
4608516120 More clippy pedantry 2023-03-22 23:12:36 +10:30
dbr
6e684c8781 Other clippy lint
I think the lint was relegated to nursery in later releases but seems reasonable enough in this case
2023-03-22 23:07:54 +10:30
dbr
07673e8eba Use $crate in create_token macro 2023-03-22 23:02:00 +10:30
dbr
b7fbd575c5 Fix clippy warnings
Mostly unnecessary 'as' casts to same kind, and unneeded borrows
2023-03-22 23:01:37 +10:30
dbr
3e995f481c Bump MSRV to 1.64
raw-window-handle now requires this. No hard-requirement from imgui-rs - projects with lock file pinning indirect dependencies will likely keep working in 1.60
2023-03-22 20:02:22 +10:30
Laurent Dufresne
27f7d2fa57 Replaced crate "clipboard" by "copypasta"
The crate clipboard is not maintained anymore and has a dependency with
multiple security issues.
2023-03-08 17:52:22 +01:00
dbr/Ben
9ff2eabf29
Merge pull request #710 from dbr/modfix
Fix handling of modifier keys in winit-support
2023-03-03 19:34:29 +10:30
dbr
b49572871a Fix copypaste-errors 2023-03-03 19:21:40 +10:30
dbr
4e146f2ef0 fmt 2023-03-03 18:57:01 +10:30
dbr
b781572e33 Copy modified-handling code for viewport renderer 2023-03-03 18:56:52 +10:30
dbr
0863512c43 Handle modifiers properly in winit-support
Previously only the "LeftCtrl" was set, not ModCtrl (same for shift etc). Although winit also act weirdly, and once the window regains focus it starts starts triggering ModifierChanged which also sets ModCtrl, so this problem wasn't always noticeable
2023-03-03 18:50:32 +10:30
dbr
842cd0700b Move ModifiersChanged handler
No longer needs to be handled outside of the main event match statement
2023-03-03 18:50:32 +10:30
dbr/Ben
52820dbb3e
Merge pull request #711 from Rob2309/glow-0.12
Update to glow 0.12
2023-03-03 18:48:48 +10:30
Robin
0ef604bbb1 Update to glow 0.12 2023-02-02 15:00:28 +01:00
dbr/Ben
a2ad8dd955
Merge pull request #619 from Rob2309/main
Expose Viewport functionality
2023-02-02 13:02:18 +10:30
dbr
29978d3a31 Fix clippy lint in example 2023-01-30 17:03:56 +10:30
dbr
6cd80834e5 Missing 'mut' in unsafe{} comment 2023-01-30 17:00:11 +10:30
dbr
b730a88d00 Rename viewport example
Mostly so when running "cargo run --example" it is clearer
2023-01-30 16:55:56 +10:30
Robin
ce92bd6dd1 Clippy fixes in imgui-winit-glow-renderer-viewports 2023-01-21 21:16:12 +01:00
Robin
3ac84559fa viewports renderer now uses event-based io 2023-01-21 21:05:37 +01:00
Robin
29b23ec5dc Bumped everything to MSRV 1.60 2023-01-21 20:48:18 +01:00
Robin
bc9cb1c246 viewports renderer now backups OpenGL state 2023-01-21 20:44:22 +01:00
Robin
5528eef52d cargo fmt 2023-01-21 20:10:19 +01:00
Robin Quint
a84610ee03 Fixed renderer on wayland 2023-01-21 20:04:59 +01:00
Robin
5f4cbcdc16 Renderer now disables viewports on wayland 2023-01-21 19:51:51 +01:00
Robin
654aabac71 viewports renderer should now work with viewports disabled 2023-01-21 19:30:16 +01:00
Robin
9dbcdabdaa Merge branch 'main' of https://github.com/imgui-rs/imgui-rs 2023-01-21 14:00:31 +01:00
dbr/Ben
e08707e505
Merge pull request #707 from MarijnS95/bindgen-0.63
upgrading-imgui: Fix some typos
2023-01-20 11:29:12 +10:30
Marijn Suijten
dbd13d5ed2 upgrading-imgui: Fix some typos 2023-01-19 10:35:13 +01:00
dbr
3cc28c527d Remove empty .gitmodules 2023-01-17 20:46:48 +10:30
dbr
0ffa2d1414 FIx clippy note on #[deprecated(...)] 2023-01-16 21:21:02 +10:30
dbr
8006372580 Note on order for publishing crates 2023-01-16 19:45:36 +10:30
dbr
7419057bda Update changelog with release number 2023-01-16 19:44:48 +10:30
dbr
36cf76a4c1 Format #[deprecated(...)] annotations 2023-01-16 19:39:14 +10:30
dbr
fcc4263dce Bump to v0.10 2023-01-16 19:26:14 +10:30
dbr
068275e1b4 Note in changelog about KeyPadEnter to KeypadEnter 2023-01-16 19:01:37 +10:30
dbr
c0f9035ec9 Fixes for doc-links 2023-01-16 18:57:16 +10:30
dbr
5a43f28257 Misc doc strings 2023-01-16 18:54:40 +10:30
dbr
1f6195d1aa Mark Id::Str(...) etc as #[deprecated]
Also add doc strings to Ui.new_id_int(...) etc
2023-01-16 18:54:13 +10:30
dbr
90a4df339f freetype: Supress warning from imgui
Closes #588
2023-01-15 21:56:21 +10:30
dbr/Ben
93cde6aa4a
Merge pull request #701 from rodrigorc/FixWinitKeyboard
Fix keyboard modifiers in Winit with the new ImGui version.
2023-01-15 21:55:44 +10:30