A collection of examples using the Piston game engine
To build the examples, you need Rust and Cargo installed.
cargo run --example <NAME>
where the NAME
are a file names from examples
directory
2.1. Optionally navigate to examples/<directory>
and invoke cargo run
for more complex examplesI get "GL context creation failed" when running an example.
It's likely your hardware or driver doesn't support PistonWindow's default OpenGl spec. Just change it to something you can support at the beginning of the example. See hello_world.rs for an example.