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

dev pistoncore-sdl2_window

A SDL2 back-end for the Piston game engine

69 breaking releases

Uses old Rust 2015

0.69.0 Sep 26, 2023
0.68.0 Feb 23, 2022
0.67.0 Jan 12, 2021
0.66.0 Aug 8, 2020
0.0.0 Dec 15, 2014

#1029 in Game dev

Download history 16/week @ 2023-12-11 36/week @ 2023-12-18 18/week @ 2023-12-25 4/week @ 2024-01-01 48/week @ 2024-01-08 13/week @ 2024-01-15 13/week @ 2024-01-22 2/week @ 2024-01-29 8/week @ 2024-02-05 39/week @ 2024-02-12 37/week @ 2024-02-19 358/week @ 2024-02-26 129/week @ 2024-03-04 248/week @ 2024-03-11 151/week @ 2024-03-18 105/week @ 2024-03-25

648 downloads per month
Used in 20 crates

MIT license

51KB
501 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
~382K SLoC