Skip to content
A collection of examples using the Piston game engine
Rust GLSL
Branch: master
Clone or download
Latest commit f0b939c Aug 5, 2019

README.md

piston-examples Build Status

A collection of examples using the Piston game engine

How to contribute

How to build & run examples

To build the examples, you need Rust and Cargo installed.

  1. Install Rust
  2. In the Terminal window, navigate to the project directory of the example you want to build.
  3. Type cargo build
  4. Type cargo run --bin hello_world

Troubleshooting

  • I get ld: library not found for -lSDL2 error on OSX

  • 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.

You can’t perform that action at this time.