A collection of examples using the Piston game engine
To build the examples, you need the latest Rust nightly and Cargo installed.
- Install Cargo
- In the Terminal window, navigate to the project directory of the example you want to build.
- Type
cargo build
- Type
cargo run --bin hello_world
-
I 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.