Minimal sprite rendering example written in C with SDL2
for windowing, sokol_gfx
for graphics API using WebGL2/GLES3, stb_image
for loading image, compiled in WebAssembly with Emscripten.
- Clone the repositories
sokol
andstb
in thedeps
folder - Add an image (sky.png) in
assets
directory - Compile and build with the following command (need Emscripten installed):