Can Rust target MS-DOS yet? If so then DOSBox
-
-
-
Sure, if you install a protected mode version of Windows in DOSBox first :)
- 3 more replies
New conversation -
-
-
For a thing you're planning on shipping and supporting: SDL2 For a thing you want other rust devs to be able to work on easily but don't care as much about the final user experience: winit/glutin
-
This Tweet is unavailable.
- 1 more reply
New conversation -
-
-
winit, it's pure Rust and isn't tied to opengl
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I've used Glutin to create a basic window, and I was happy with it. Only one gotcha encountered, which was that the events loop code I found in an example is bad for real-life perf. https://docs.rs/glutin/0.19.0/glutin/struct.EventsLoop.html … (see "Danger" section) TLDR: Use poll_events instead of run_forever.
-
Note that `run_forever` is technically more "correct", and the only correct solution within a browser. One can simply add the received event to a Vec and process it later.
End of conversation
New conversation -
-
-
glutin's windowing layer got split into winit (https://docs.rs/winit ) it can probably even be used with native APIs (with the right #[cfg]s), but at least OpenGL/Vulkan/DirectX/Metal should work (as stated in the docs)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
SDL2. No contest. But everyone seems to want to only use winit and so on.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.