/rs-sdl2-examples

Rust SDL2 example code

Primary LanguageRustMIT LicenseMIT

Rust SDL2 Examples

Setup

You will need rust and SDL2 on your system.

Build the examples via Cargo

cargo build

Some examples will require assets so run each example from the root of the project.

cargo run --bin eg04

Displays a window for a moment then quits.

Handling events.

Rendering shapes.

Surface rendering.

Texture rendering.