pistoncore-sdl2_window

Crates.iopistoncore-sdl2_window
lib.rspistoncore-sdl2_window
version0.69.0
sourcesrc
created_at2014-12-15 12:11:36.544107
updated_at2023-09-26 04:58:42.22672
descriptionA SDL2 back-end for the Piston game engine
homepagehttps://github.com/pistondevelopers/sdl2_window
repositoryhttps://github.com/pistondevelopers/sdl2_window.git
max_upload_size
id562
size80,718
publish (github:pistondevelopers:publish)

documentation

README

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

Commit count: 455

cargo fmt