#game-engine #sdl2 #piston

dev pistoncore-sdl2_window

A SDL2 back-end for the Piston game engine

71 breaking releases

0.71.0 Jan 8, 2025
0.70.0 Oct 21, 2024
0.69.0 Sep 26, 2023
0.68.0 Feb 23, 2022
0.0.0 Dec 15, 2014

#1380 in Game dev

Download history 3/week @ 2025-06-01 14/week @ 2025-06-08 90/week @ 2025-06-15 163/week @ 2025-06-22 78/week @ 2025-06-29 144/week @ 2025-07-06 157/week @ 2025-07-13 196/week @ 2025-07-20 98/week @ 2025-07-27 29/week @ 2025-08-03 85/week @ 2025-08-10 258/week @ 2025-08-17 246/week @ 2025-08-24 579/week @ 2025-08-31 223/week @ 2025-09-07 160/week @ 2025-09-14

1,265 downloads per month
Used in 21 crates

MIT license

51KB
679 lines

sdl2_window Build Status Crates.io Crates.io

An SDL2 back-end for the Piston game engine

Maintainers: @TyOverby, @bvssvni, @Coeuvre, @mitchmindtree

How to contribute

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

Dependencies

~17MB
~370K SLoC