#sdl2 #piston #piston-game-engine #window #game-engine

dev pistoncore-sdl2_window

A SDL2 back-end for the Piston game engine

71 breaking releases

new 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

#289 in Graphics APIs

Download history 200/week @ 2024-09-20 117/week @ 2024-09-27 32/week @ 2024-10-04 56/week @ 2024-10-11 183/week @ 2024-10-18 68/week @ 2024-10-25 92/week @ 2024-11-01 46/week @ 2024-11-08 53/week @ 2024-11-15 79/week @ 2024-11-22 55/week @ 2024-11-29 336/week @ 2024-12-06 227/week @ 2024-12-13 35/week @ 2024-12-20 61/week @ 2024-12-27 125/week @ 2025-01-03

638 downloads per month
Used in 20 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