how godot_headers work

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SomeDev

hi, have some question about godot_headers that it have all the declarations about functions but doesn’t have any implementations how does that even compile in the first place? at runtime how it resolves them with c++ types and methods what under the hood? I’m so confused about how it works?

Have you worked with C/C++ before? If I recall, that’s a common programming practice.

Ertain | 2020-06-18 19:03

:bust_in_silhouette: Reply From: ProggerParrot

Thats really common in C++ Development :smiley:
you can find the “real” code in the godot-repo on GitHub. Godot Engine · GitHub

You can use the headers for example to build bindings.
And the bindings + Headers are used to compile Gd-native-Librarys. Those Library don’t have any life in it, until you throw them into the Engine.

But the main implementations of the hot stuff are always in the Codebase of the engine

I can recommend you to take a look at my Godot C++ Steam Guide. This will help you out to understand the possibilitys :smiley: