- Notifications
You must be signed in to change notification settings - Fork48
brson/rust-sdl
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Bindings for SDL in Rust
Rust-SDL is a library for talking to SDL from Rust. Low-level C components are wrapped in Rust code to make them more idiomatic and abstract away inappropriate manual memory management.
In addition, it provides optional APIs to a number of common SDL extension libraries.
Rust-SDL uses the MIT license.
- Rust - You can get the Rust compiler fromhttp://www.rust-lang.org
- SDL 1.2 development libraries - install through your favourite package management tool, or viahttp://www.libsdl.org/
Optional
- SDL_Mixer andSDL_Image - also available through most package managers, or throughhttp://www.libsdl.org/projects/SDL_mixer/ andhttp://www.libsdl.org/projects/SDL_image/
Clone this repo, runcargo build
. To see an example of the code in use,rustc -L ./target src/sdl-demo/main.rs
.
SDL_mixer and SDL_image are available through separate packages, from within their respective directories, runcargo build
to build. They depend on the main SDL library.
Rust, and Rust-SDL, are both still heavily in development, and you may run into teething issues when using this. Before panicking, check that you're using the latest Master branch of Rust, check that you've updated Rust-SDL to the latest version, and runcargo clean
. If that fails, please let us know on the issue tracker.
About
SDL bindings for Rust
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.