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

dev pistoncore-sdl2_window

A SDL2 back-end for the Piston game engine

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

Download history 84/week @ 2024-07-15 40/week @ 2024-07-22 133/week @ 2024-07-29 69/week @ 2024-08-05 114/week @ 2024-08-12 41/week @ 2024-08-19 112/week @ 2024-08-26 48/week @ 2024-09-02 48/week @ 2024-09-09 30/week @ 2024-09-16 268/week @ 2024-09-23 61/week @ 2024-09-30 9/week @ 2024-10-07 68/week @ 2024-10-14 200/week @ 2024-10-21 78/week @ 2024-10-28

362 downloads per month
Used in 20 crates

MIT license

51KB
506 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
~371K SLoC