-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split out new crate egui-winit from egui_glium #735
Conversation
@hasenbanck @LU15W1R7H @parasyte @derivator @t18b219k @Gui-Yom - You may be interested in this, and have feedback on the API? |
I'll take a look in the next days. Since I own the |
What about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some trivial typos, I'll test the code later today if I can
I will test this Input integration with egui_vulkano_backend as fast as possible. |
It works! 🎉 Edit: pushed it to AlexApps99/egui@based, there's some bugginess around resizing but that's the only issue I noticed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, i can't comment on major decisions or fine nuances yet, however didn't find anything that stood out.
ARCHITECTURE.md
Outdated
@@ -5,7 +5,7 @@ Also see [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUT | |||
|
|||
|
|||
## Crate overview | |||
The crates in this repository are: `egui, emath, epaint, egui, epi, egui_web, egui_glium, egui_demo_lib, egui_demo_app`. | |||
The crates in this repository are: `egui, emath, epaint, egui, epi, egui_for_winit, egui_web, egui_glium, egui_demo_lib, egui_demo_app`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe egui_for_winit isn't the right name in the current convention? I read that egui-winit crate name was maybe transferable, So ill just leave this as a reminder.
Looks very nice. My thoughts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that documenting what this library handles and what it's leaving for the user would be cool.
Also, I spotted a small error with the scale factor.
@emilk I'm ready to give you the crates.io ownership of the Since
|
b3ebfed
to
0fcb645
Compare
That would be greatly appreciated!
Let's discuss that in #93 instead so this PR doesn't go off topic! |
Done!
This is a good idea. One wrinkle to consider is the TAB key which can be pressed to move focus in egui, e.g. to the first text field. The linked code does not take this into consideration. For many applications all TAB:s should go to egui, but maybe for some games no TAB:s should go to egui. |
@emilk |
This extracts a lot of code from egui_glium into a reusable crate `egui_for_winit`. This can be reused for `egui_glow` (#685) and many other integrations. This replaces the (somewhat outdated) 3rd party [`egui_winit_platform`](https://github.com/hasenbanck/egui_winit_platform) which is used by a few integrations: <https://crates.io/crates/egui_winit_platform/reverse_dependencies>. The name `egui_for_winit` is not great, but `egui_winit` [was already taken](https://crates.io/crates/egui-winit). I would welcome a better name suggestion!
e1f38c8
to
3d463a6
Compare
The kebab-case of |
TODO:
I'm planning to publish |
This extracts a lot of code from egui_glium into a reusable crate
egui_for_winit
egui-winit
. This can be reused foregui_glow
(#685) and many other integrations.This replaces the 3rd party
egui_winit_platform
which is used by a few integrations: https://crates.io/crates/egui_winit_platform/reverse_dependencies.egui_for_winit
handles a lot more things, like touch input, screen reader, etc.The nameegui_for_winit
is not great, butegui_winit
was already taken. I would welcome a better name suggestion!API