Skip to content

Zig lang bindings for Godot Engine GDNative and GDExtension

License

Notifications You must be signed in to change notification settings

thimenesup/GodotZigBindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zig lang bindings for Godot GDExtension

For Zig Version 0.13.0 and Godot 4.0.0

If you are looking for the GDNative Godot 3.0.0 bindings click here

Package Usage

Before you use this as a package, you must generate the GDExtension and class files for Zig, this is done by building with the following options

zig build -Dgdextension="mydir/extension_api.json" -Dbuild_config="float_64"

The gdextension file can get generated by running the engine with the following CLI command "--dump-extension-api" The build configuration should match the engine bits and float/double types that was built with

Example usage

The "test_example" folder contains an explained minimal example of how to use this as a package, with the build script, library entry point and a sample class included that can be built with

zig build

About

Zig lang bindings for Godot Engine GDNative and GDExtension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages