anyputer/retro-zig
libretro zig bindings
d5f381759825ee0bac29bc294d47aa05be4ab7b5
_ _ _
_ __ ___| |_ _ __ ___ ___(_) __ _ (_)
| '__/ _ \ __| '__/ _ \ ____|_ / |/ _` | | |
| | | __/ |_| | | (_) |_____/ /| | (_| | | |
|_| \___|\__|_| \___/ /___|_|\__, |___|_|____
|___/___________|
Hand-written libretro bindings for the Zig programming language.
My hope is that this will be useful for people creating emulators and game engines in Zig, for years to come. Consider giving a ⭐ if you like what you see!
WARNING This is currently missing a bunch of functionality, and is not yet stable. Furthermore, while Zig itself is a very nice little language, you should expect breaking changes. Nonetheless, have fun!
zig build -Doptimize=ReleaseSmall
This gives you very tiny shared objects.
To run the basic
example:
retroarch -L ./zig-out/lib/libbasic_libretro.so