Skip to content
A collection of examples using the Piston game engine
Rust GLSL
Branch: master
Clone or download

Latest commit

Latest commit 5954261 Feb 11, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Fixed "cube" example Apr 13, 2016
freetype Updated dependencies Feb 11, 2020
src Updated dependencies Jun 2, 2019
tiled Updated "tiled" dependencies Dec 6, 2019
user_input Updated dependencies Feb 11, 2020
.gitignore Moved gfx_graphics examples to the top Jun 20, 2015
.travis.yml Fix Travis CI May 21, 2017
Cargo.toml Updated depencies Feb 11, 2020
LICENSE Initial commit Jun 28, 2014
README.md Rust nightly is no longer required Feb 28, 2017
texture_swap.ods Added spread sheet for using texture_swap for worst case estimate Nov 15, 2015

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.