#sdl2 #window #piston

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

#532 in Game dev

Download history 998/week @ 2023-10-22 912/week @ 2023-10-29 884/week @ 2023-11-05 957/week @ 2023-11-12 951/week @ 2023-11-19 1153/week @ 2023-11-26 954/week @ 2023-12-03 888/week @ 2023-12-10 933/week @ 2023-12-17 1026/week @ 2023-12-24 875/week @ 2023-12-31 938/week @ 2024-01-07 838/week @ 2024-01-14 928/week @ 2024-01-21 922/week @ 2024-01-28 670/week @ 2024-02-04

3,508 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
~381K SLoC