70 breaking releases
Uses old Rust 2015
0.70.0 | Oct 21, 2024 |
---|---|
0.69.0 | Sep 26, 2023 |
0.68.0 | Feb 23, 2022 |
0.67.0 | Jan 12, 2021 |
0.0.0 | Dec 15, 2014 |
#229 in Graphics APIs
362 downloads per month
Used in 20 crates
51KB
506 lines
sdl2_window
An SDL2 back-end for the Piston game engine
Maintainers: @TyOverby, @bvssvni, @Coeuvre, @mitchmindtree
Installation
To use this as a dependency, add the following code to your Cargo.toml file:
[dependencies.pistoncore-sdl2_window]
git = "https://github.com/PistonDevelopers/sdl2_window"
How to create a window
let mut window: Sdl2Window = WindowSettings::new("SDL Window", (640, 480))
.fullscreen(false)
.vsync(true)
.build()
.unwrap();
See the examples for more ways to create a window.
Troubleshooting
Dependencies
Dependencies
~17MB
~371K SLoC