Skip to content

csellsword/piston-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 the latest Rust nightly and Cargo installed.

  1. Install Cargo
  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.

About

A collection of examples using the Piston game engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.5%
  • GLSL 1.5%