#sdl2 #window #piston #engine

dev pistoncore-sdl2_window

A SDL2 back-end for the Piston game engine

71 breaking releases

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

#143 in Graphics APIs

Download history 204/week @ 2025-01-29 333/week @ 2025-02-05 229/week @ 2025-02-12 392/week @ 2025-02-19 385/week @ 2025-02-26 30/week @ 2025-03-05 298/week @ 2025-03-12 62/week @ 2025-03-19 112/week @ 2025-03-26 13/week @ 2025-04-02 119/week @ 2025-04-09 63/week @ 2025-04-16 186/week @ 2025-04-23 74/week @ 2025-04-30 202/week @ 2025-05-07 117/week @ 2025-05-14

592 downloads per month
Used in 21 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

OSZAR »