#sdl2 #window #piston

dev pistoncore-sdl2_window

A SDL2 back-end for the Piston game engine

63 breaking releases

0.63.0 Jul 8, 2019
0.61.0 Jun 9, 2019
0.55.0 Feb 7, 2019
0.52.0 Nov 15, 2018
0.0.0 Dec 15, 2014

#5 in #sdl2

Download history 67/week @ 2019-08-02 117/week @ 2019-08-09 62/week @ 2019-08-16 1264/week @ 2019-08-23 147/week @ 2019-08-30 288/week @ 2019-09-06 108/week @ 2019-09-13 478/week @ 2019-09-20 172/week @ 2019-09-27 102/week @ 2019-10-04 49/week @ 2019-10-11 219/week @ 2019-10-18 222/week @ 2019-10-25 275/week @ 2019-11-01 23/week @ 2019-11-08

1,010 downloads per month
Used in 19 crates

MIT license

49KB
499 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

~4MB
~83K SLoC