Crates.io | pistoncore-sdl2_window |
lib.rs | pistoncore-sdl2_window |
version | 0.70.0 |
source | src |
created_at | 2014-12-15 12:11:36.544107 |
updated_at | 2024-10-21 11:16:44.41511 |
description | A SDL2 back-end for the Piston game engine |
homepage | https://github.com/pistondevelopers/sdl2_window |
repository | https://github.com/pistondevelopers/sdl2_window.git |
max_upload_size | |
id | 562 |
size | 81,296 |
An SDL2 back-end for the Piston game engine
Maintainers: @TyOverby, @bvssvni, @Coeuvre, @mitchmindtree
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"
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.