Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brson/rust-sdl
SDL bindings for Rust
https://github.com/brson/rust-sdl
Last synced: 8 days ago
JSON representation
SDL bindings for Rust
- Host: GitHub
- URL: https://github.com/brson/rust-sdl
- Owner: brson
- License: mit
- Created: 2012-02-12T01:46:09.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-06-03T15:48:37.000Z (over 9 years ago)
- Last Synced: 2024-04-15T14:13:39.697Z (7 months ago)
- Language: Rust
- Homepage:
- Size: 1.44 MB
- Stars: 178
- Watchers: 17
- Forks: 52
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-rust-cn - brson/rust-sdl - ci.org/brson/rust-sdl.svg?branch=master">](https://travis-ci.org/brson/rust-sdl) (Libraries / Game development)
- awesome-rust - brson/rust-sdl - ci.org/brson/rust-sdl.svg?branch=master">](https://travis-ci.org/brson/rust-sdl) (Libraries / Game development)
- awesome-rust - brson/rust-sdl - ci.org/brson/rust-sdl.svg?branch=master">](https://travis-ci.org/brson/rust-sdl) (代码 / GUI)
- awesome-rust - brson/rust-sdl
- awesome-rust-cn - brson/rust-sdl
- awesome-rust-zh - brson/rust-sdl - SDL1 绑定 [<img src="https://api.travis-ci.org/brson/rust-sdl.svg?branch=master">](https://travis-ci.org/brson/rust-sdl) (库 / 游戏开发)
- awesome-rust - brson/rust-sdl - ci.org/brson/rust-sdl.svg?branch=master">](https://travis-ci.org/brson/rust-sdl) (库 Libraries / 游戏开发 Game development)
README
# Rust-SDL
Bindings for SDL in Rust
# OverviewRust-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.
# Requirements
* *Rust* - You can get the Rust compiler from http://www.rust-lang.org
* *SDL 1.2 development libraries* - install through your favourite package management tool, or via http://www.libsdl.org/**Optional**
* *SDL_Mixer* and *SDL_Image* - also available through most package managers, or through http://www.libsdl.org/projects/SDL_mixer/ and http://www.libsdl.org/projects/SDL_image/# Installation
Clone this repo, run `cargo 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, run `cargo build` to build. They depend on the main SDL library.
# When things go wrong
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 run `cargo clean`. If that fails, please let us know on the issue tracker.