gfx-rs

Build Status Gitter Chat Stories in Ready

Documentation is hosted on rust-ci.

gfx-rs is a high-performance, bindless graphics API for the Rust programming language. It aims to be the default API for Rust graphics: for one-off applications, or higher level libraries or engines.

Why gfx-rs?

Goals

gfx-rs aims to be:

Non-goals

gfx-rs is not:

gfx-rs will not handle:

Getting started

Add the following to your Cargo.toml:

~~~toml [dependencies.gfx] git = "http://github.com/gfx-rs/gfx-rs" ~~~

See the triangle example for a typical context initialization with glfw, or glutin example for glutin.

Crate hierarchy

Dependency graph

Building the examples

To build the examples run cargo test. The executables will be in the target directory.

~~~sh

Build all Examples

cargo test

Run Cube Example

target/examples/cube ~~~

Note

gfx-rs is still in the early stages of development. Help is most appreciated.

If you are interested in helping out, you can contact the developers on Gitter. See contrib.md for contact information and contribution guidelines.