RepositoryOdin
dresswithpockets

dresswithpockets/odin-godot

Godot toolkit for the Odin programming language

169stars
18forks
4issues
6views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: gdnative

#1 Repository of the week

1
TINIX TRENDING·Topic: odin-lang

#1 Repository of the week

1
TINIX TRENDING·Topic: gdextension

#1 Repository of the week

Godot Toolkit for Odin

[!WARNING] This toolkit is a Work In Progress!

If you are using parts of it, beware of sudden major changes to the API, structure, and features.

This currently targets Godot v4.4. The base interface is backwards compatible with v4.3 and v4.2, and may even work with v4.1, but it will not work with v4.0. For a version which works with v4.0 use the dev-4.0-2024-02 release.

Checkout releases for each Godot version here: https://github.com/dresswithpockets/odin-godot/releases - Some are more stable than others.

Base GDExtension Bindings

The bindings to the C Interface are in gdextension. Check out hello-gdextension for example usage of these bindings.

Generating Complete Bindings

Clone & generate bindings

git clone --recurse-submodules -j8 https://github.com/dresswithpockets/odin-godot
cd odin-godot
make bindings

Bindings for all enums, classes, utility functions, singletons, and native structs will be generated in core, editor, and variant.

[!NOTE] make bindings expects odin on path, all submodules updated, and odin-godot (this repo) is the working directory.

Alternatively, you may build and run bindgen yourself:

# temple is the templating engine used by bindgen, temple_cli is temple's preprocessor.
odin build temple/cli/ -o:speed -out:bin/temple_cli.exe

# temple_cli will recursively search all odin files in the specified directory for
# usages of `compiled` and `compiled_inline`, then it will generate Odin code with
# the built templates in templates.odin, in the specified directory. in this case,
# its searching in the bindgen directory, and outputs to bindgen/templates.odin, with
# the `bindgen` package name.
./bin/temple_cli.exe bindgen bindgen bindgen

# bindgen is the tool which uses the temple templates to generate the entire
# GDExtension binding
odin build bindgen/ -o:speed -out:bin/bindgen.exe

# bindgen requires a path to a json file which describes the GDExtension API.
# One is available in godot-cpp.
./bin/bindgen.exe godot-cpp/gdextension/extension_api.json

Creating a GDExtension

See the example game for a working usage of these bindings.

Then, follow the instructions for using the extension module.

Godin

Godin is a preprocessor which generates most of the boilerplate for Extension Classes, Methods, Enums, Properties, Signals, Groups, and Subgroups.

[!WARNING] Godin is suuuuper work in progress!

Godin doesn't produce correct gdextension useage in its current state, and may not even run in some cases.

For example, the following Odin code will produce all of the boilerplate for an extension class "Player" that extends "Node2D".

package test

//+class Player extends Node2D
Player :: struct {
    health: i64,
}

To build Godin:

# while in the odin-godot directory
./build_godin.sh

Run godin help for usage details, including documentation about the Godin preprocessor syntax.

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
DmitriySalnikov/godot_debug_draw_3d

Draw 3D debug graphics and 2D overlays with this add-on.

1.1k
Apr 4, 2026
RepositoryOdin
odin-lang/Odin

Odin Programming Language

12.4k
Dec 1, 2026
RepositoryOdin
karl-zylinski/karl2d

Odin 2D game library. Beginner friendly and easy to modify.

732
Nov 27, 2026
RepositoryOdin
thetarnav/odin-wasm

Odin + WASM = 💙

142
Jan 11, 2025
RepositoryOdin
NateTheGreatt/odecs

A simple, modern ECS built in Odin

121
Mar 1, 2026
RepositoryOdin
Huseynteymurzade28/hnoss

An immediate-mode TUI library for Odin. Pure Odin, no C, batteries included.

115
Nov 25, 2026
RepositoryOdin
Samudevv/runic

Bindings Generator and Intermediate Format for languages using the C-ABI

109
Jul 11, 2026
RepositoryOdin
jakubtomsu/odin-ldtk

Odin loader for LDtk files. LDtk is a modern 2D level editor from the creator of Dead Cells, with a strong focus on user-friendliness.

80
Apr 23, 2026
RepositoryOdin
Archetype-Dynamics/OstrichDB-CLI

Harness The Power of OstrichDB Directly From Your Terminal! | Featured on Awesome Odin!

72
May 30, 2025