mcpp index

compat.godot-cpp

#include

C++ bindings for the Godot GDExtension API (pre-generated bindings, no Python/SCons needed)

#include <godot_cpp/classes/editor_dock.hpp>
mcpp add compat.godot-cpp@10.0.0-rc1

Usage

From this repository's own test project — built and run by CI, not written for the website.

// Behavioral test for compat.godot-cpp 10.0.0-rc1 -- godot-cpp's own 10.x
// version line, whose bindings target Godot 4.6.
//
// The point of a second member is that it can tell the two versions apart, so
// the first thing asserted is WHICH bindings arrived: the generated version
// header and a class that exists in 4.6 and not in 4.5. The rest mirrors the
// 4.5 member so a behavioural difference between the two would show up as a
// diff between two otherwise identical tests.
//
// As there, everything asserted is pure math or compile-time: anything routed
// through the gdextension_interface_* pointers needs a Godot process that has
// loaded the extension.

#include <godot_cpp/classes/editor_dock.hpp>  // new in Godot 4.6
#include <godot_cpp/classes/global_constants.hpp>
#include <godot_cpp/classes/node.hpp>
#include <godot_cpp/core/version.hpp>
#include <godot_cpp/variant/aabb.hpp>
#include <godot_cpp/variant/basis.hpp>
#include <godot_cpp/variant/color.hpp>
#include <godot_cpp/variant/vector2.hpp>
#include <godot_cpp/variant/vector3.hpp>
// …

tests/examples/godot-cpp-v10/tests/godot_cpp_v10.cpp · project tests/examples/godot-cpp-v10

Build

targets
godot-cpp (lib)
language
c++23
import std
no
include dirs
*/include, */gen/include, */gdextension

Features

featuredeclares
defaultimplies
gdextensiondefines

Sources (4)

  • */src/*.cpp
  • */src/*/*.cpp
  • */gen/src/*.cpp
  • */gen/src/*/*.cpp

Versions

VersionPlatforms Mirrorssha256
10.0.0-rc1 latest LinuxWindowsmacOS CN GLOBAL aaafbf50d4b8…
4.5.0 LinuxWindowsmacOS CN GLOBAL b0c36e77f02c…