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

用法

來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。

// 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 · 專案 tests/examples/godot-cpp-v10

建置

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

功能

功能宣告了
defaultimplies
gdextensiondefines

原始檔 (4)

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

版本

版本平台 鏡像sha256
10.0.0-rc1 最新 LinuxWindowsmacOS CN GLOBAL aaafbf50d4b8…
4.5.0 LinuxWindowsmacOS CN GLOBAL b0c36e77f02c…