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
sokolandstbin thedepsfolder - Add an image (sky.png) in
assetsdirectory - Compile and build with the following command (need Emscripten installed):