Repository navigation
Examples: less redundancy, improve fullscreen - #2350
Conversation
|
I'm in favor of having window example to use softbuffer and print events. I'm also not sure about the color you've used with softbuffer, I'd suggest to use something more neutral, since it looks like broken graphics(unless you look into it for a while) or something like that most of the time. Can go with pink or white. We should probably close Wayland issues related to window not showing given that there's a window now, with e.g. window example. |
Yeah, I think it's a little bit too much. Just white or black should do it, I guess. |
|
I can fix that, but I believe there's a more pressing issue: all the windows tests have failed due to a softbuffer build issue. I don't think we want winit to suffer due to this, and dev-dependencies cannot be optional. I guess I could use a separate crate for the example, but then it's not just |
I think fixing softbuffer is the right way to go? We're not in a rush with adding examples using softbuffer. We do need this example, since it should be more reliable then testing with glutin. So if we should fix softbuffer for that we should go for it. |
|
Since I lack a Windows machine for testing, I'll have to leave the fixing to others. |
Remove examples/minimize which is redundant
|
I rebased: softbuffer is now only used in examples/window |
|
I'd suggest to at least bring this issue to softbuffer. |
|
Sure. Would it make more sense to push softbuffer integration to a different PR in that case, and merge the other changes here? |
Sure. |

Added softbuffer as a dev-dependency, as discussed in #2246. This is only one new example; I'm not sure it has a lot of utility. (It would be nice to see this used in at least
examples/transparency, but this didn't work and due to the simple nature of thesoftbuffercrate I opted not to investigate further.)Improved input handling of
examples/fullscreen(expecting use of the console for input while in fullscreen mode is not user friendly).Removed three examples which are redundant with others.
CHANGELOG.mdif knowledge of this change could be valuable to users