Rust wrapper around bgfx, providing a clean, safe API for rust applications.
Please read the crate documentation for build requirements and crate limitations before using.
Note: I was originally using this crate as a way of learning Rust. Since I personally stopped using Rust again however, this crate has ended up more or less unmaintained. There are a couple of forks that have some more work put into it already, but if someone wants to take over the project for real, please let me know so I can direct users to your fork instead.
To run the examples, invoke them through cargo:
cargo run --example 00-helloworld
cargo run --example 01-cubes
OSX Note: There is currently no really clean way to exit the examples in
OSX, and closing the window may in fact cause a crash. This is due to
limitations in glutin (specifically #468 and #520). This only
effects the examples, and not the crate itself. The best way of closing them
is to simply Ctrl-C
in the console.
Copyright (c) 2015-2016, Johan Sköld
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.