✓ Uses Rust 2018 edition
|new 0.1.2||Oct 13, 2019|
|0.1.1||Oct 12, 2019|
|0.0.17||Aug 2, 2019|
|0.0.15||Jul 18, 2019|
|0.0.3||May 28, 2019|
#23 in Multimedia
514 downloads per month
Used in 2 crates
An opinionated set of "high level" wrappers for the fermium SDL2 bindings.
Compared to the usual sdl2, this is much closer to the
actual SDL2 C API. It is, however, a lot less complete. If you want something
added in just file and issue and we can probably work to get it done fairly
easily. If you don't want to wait on me, just call into
There are examples available if you want to see it in action.
Obviously this uses SDL2. The fermium crate is used as the bindings crate. You will need version 2.0.8 or later:
- On Windows all necessary files are provided automatically by
fermium, you don't need to do any special setup at all.
- On non-Windows you need to have installed SDL2 yourself ahead of time.
This isn't SDL2 specific, it's just a general Win32 thing, but you'll probably want to set the window_subsystem to "windows" in your programs. Just add this to the top of any binary or example:
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
We only want it enabled when
debug_assertions are not active, because it
suppresses all default console output when it is enabled.
This line won't have any effect on the build outside Windows, so no worries about needing to check for the build being on windows.
This crate uses the Zlib license, the same license that SDL2 itself uses.