Updated 2026-01-04 04:53:48 +01:00
Updated 2025-10-06 10:42:17 +02:00
Because local files don't seem to work for QuickCSS
Updated 2025-09-10 11:49:17 +02:00
zig-sdl3-example
Template
Zig example for SDL3 with main callbacks.
This approach is pretty janky, as Zig doesn't allow for a root source file in an EXE that has no main function, but we don't want the EXE to have a main function as SDL3 brings its own. Instead we make our app a Zig library, which does not (and shouldn't) have a main function, and we link that to an EXE that does nothing but compile an empty C file.
Currently this example does not work on Windows without some manual work, as it assumes an SDL3 binary is in a PATH file which is notoriously not how Windows does anything, and the SDL3 entry in the ZON file is only for the headers.
Updated 2025-08-19 00:40:59 +02:00