Skip to content
A SDL2 back-end for the Piston game engine
Rust
Branch: master
Clone or download
Latest commit db9d92f Jul 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Published 0.57.0 Jun 2, 2019
src Published 0.63.0 Jul 8, 2019
.gitignore Changed back to original rust-sdl2 Aug 3, 2014
.travis.yml Fixed sdl2 install in Travis CI Jan 8, 2017
Cargo.dot Added dependency graph to README Oct 28, 2014
Cargo.png Added dependency graph to README Oct 28, 2014
Cargo.toml Published 0.63.0 Jul 8, 2019
LICENSE Initial commit Jun 26, 2014
README.md Update Readme May 15, 2016

README.md

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

You can’t perform that action at this time.