icebreaker / plush

Plush as a single file library.

Home Page:https://mihail.co/plush/

Repository from Github https://github.comicebreaker/plushRepository from Github https://github.comicebreaker/plush

Plush

This is Plush by Justin "time compiler" Frankel amalgamated into a single file library for fun and ease of use on modern systems.

Getting Started

To compile and run the demo on any *nix-like system with SDL2 installed type in the following incantation:

$ cc -O2 `sdl2-config --cflags --libs` -lm demo.c -o build/demo
$ build/demo

You can also try adding -ffast-math -funroll-loops -fomit-frame-pointer in order to try and get some more juice out of it. Your mileage may vary!

To compile it to WASM and run it on the web via Emscripten, issue the following incantations instead:

$ emcc -O2 --preload-file data/ --shell-file shell.html \
        -s USE_SDL=2 -s ALLOW_MEMORY_GROWTH=1 demo.c -o build/demo.html
$ emrun build/demo.html

Contribute

  • Fork the project.
  • Make your feature addition or bug fix.
  • Do not bump the version number.
  • Create a pull request. Bonus points for topic branches.

License

Plush is provided as-is under the zlib license. For more information see LICENSE.

About

Plush as a single file library.

https://mihail.co/plush/

License:Other


Languages

Language:C 99.1%Language:HTML 0.9%