#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

#606 in Graphics APIs

Download history 248/week @ 2024-03-11 151/week @ 2024-03-18 16/week @ 2024-03-25 395/week @ 2024-04-01 59/week @ 2024-04-08 109/week @ 2024-04-15 130/week @ 2024-04-22 116/week @ 2024-04-29 77/week @ 2024-05-06 97/week @ 2024-05-13 273/week @ 2024-05-20 172/week @ 2024-05-27 185/week @ 2024-06-03 123/week @ 2024-06-10 109/week @ 2024-06-17 107/week @ 2024-06-24

572 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
~371K SLoC