Registry / other / godot-cpp

godot-cpp

JSON →
library4.2.1vcpkgunverified

C++ bindings for the Godot script API

other
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

#include <godot_cpp/godot.hpp>

Define a custom Godot node class and register it as a GDExtension.

#include <godot_cpp/godot.hpp> #include <godot_cpp/classes/node.hpp> using namespace godot; class MyNode : public Node { GDCLASS(MyNode, Node); protected: static void _bind_methods() {} public: void _ready() override { Godot::print("Hello from C++!"); } }; void initialize_gdextension_types(ModuleInitializationLevel p_level) { if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE) { ClassDB::register_class<MyNode>(); } } extern "C" { GDExtensionBool GDE_EXPORT godot_gdextension_init(GDExtensionInterface *p_interface, GDExtensionClassLibraryPtr p_library, GDExtensionInitialization *r_initialization) { godot::GDExtensionBinding::InitObject init_obj(p_interface, p_library, r_initialization); init_obj.register_initializer(initialize_gdextension_types); init_obj.set_minimum_library_initialization_level(MODULE_INITIALIZATION_LEVEL_SCENE); return init_obj.init(); } }
Debug
Known footguns
breakingGodot-cpp bindings are version-specific; mismatched versions can cause crashes.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
13 hits · last 30 days
gptbot
3
claudebot
3
bingbot
1
ahrefsbot
1
Resources

No resource links recorded.