#sdl2 #window #piston

dev pistoncore-sdl2_window

A SDL2 back-end for the Piston game engine

64 breaking releases

0.64.0 May 31, 2020
0.63.0 Jul 8, 2019
0.62.0 Jun 10, 2019
0.55.0 Feb 7, 2019
0.0.0 Dec 15, 2014

#5 in #sdl2

Download history 697/week @ 2020-02-26 173/week @ 2020-03-04 98/week @ 2020-03-11 256/week @ 2020-03-18 99/week @ 2020-03-25 60/week @ 2020-04-01 479/week @ 2020-04-08 330/week @ 2020-04-15 85/week @ 2020-04-22 56/week @ 2020-04-29 45/week @ 2020-05-06 262/week @ 2020-05-13 58/week @ 2020-05-20 234/week @ 2020-05-27 206/week @ 2020-06-03 46/week @ 2020-06-10

707 downloads per month
Used in less than 19 crates

MIT license

52KB
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

~3MB
~75K SLoC