Skip to content

8Observer8/built-in-png-loader-sdl-3.3.4-c

Repository files navigation

Load PNG SDL3 (C)

Demo in the browser: https://8observer8.github.io/examples/sdl3/built-in-png-loader-sdl-3.3.4-c

EXE for Windows 10, 64-bit: built-in-png-loader-sdl-3.3.4-c-exe.zip

  • Zip size: 1.22 MB
  • Unzipped: 2.82 MB

File Sizes

WASM (built with Emscripten 4.0.15):

  • index.html — 913 bytes
  • app.js — 183 KB
  • app.wasm — 903 MB
  • Total: 1.06 MB

EXE (built with MinGW GCC 11.2):

  • EXE — 80.5 KB
  • SDL3.dll (v3.3.4) — 2.65 MB
  • Assets (crate.png) — 102 KB
  • Total: 2.82 MB

Tools to Build the EXE


Tools to Build WebAssembly


How to Build EXE (Windows)

config-exe
build-exe
run-exe

How to Build WebAssembly

  1. Set up Emscripten 4.0.15 and Node.js
  2. Install http-server globally:
npm i http-server -g
  1. Configure paths in config-web.bat for your SDL3 libraries.
  2. From the project root, run:
config-web
build-web
http-server -c-1
  1. Open your browser and go to http://localhost:8080 to run the app locally.

Note: You can also run the WASM app on Android via Wi-Fi using http-server. After starting the server, it will show local URL addresses — just type one into your mobile browser.

This example uses the following free image: https://opengameart.org/content/crate-5

Releases

No releases published

Packages

No packages published