Skip to content

swan-www/Bilunaris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C and Zig bindings for TheForge

There's 3 repos, Bilunaris is the "topmost" one, the others are referenced as git submodules:

Make sure you run the appropriate git commands to retrieve all the submodules when/after you clone Bilunaris.

The build.zig for 01_transformations is under proj/test/01_transformations/build.zig. In order to build the only things that should need doing is running the prebuild bat file in TheForge itself to grab the art files, downloading the zig compiler, and then running zig.exe build --summary all -Dtarget=x86_64-windows-msvc -Doptimize=Debug while current working directory is proj/test/01_transformations.

The zig source for 01_transformations is here: src/test/01_transformations/01_transformations.zig

The C bindings are located here: src/dep/modules/ztf/glue

The zig bindings are created as part of the build process, and generated a file called Ztf.zig. You can see how this is referenced in the build.zig file for 01_transformations. This should support Zig v0.12 to v0.13, and the fork of the TheForge version used was just updated to 1.58 (holding off 1.59 for now).

The built binary and resources should end up in a zig-out folder in the same directory as the build.zig file. Running this executable should run the 01_transformations demo. If you wish to debug, I recommend using The Rad Debugger.

About

C and Zig bindings for TheForge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published