C++ forward declarations for godot classes
Asked Answered
M

1

0

Are there C++ forward declarations for godot classes?

Background: when declaring, in a header file, a class member that is a pointer to a godot class, e.g. ::godot::Node * pointerToNode, I need to either #include <godot_cpp/classes/node.hpp> or add something like

namespace godot
{
  class Node;
}

I prefer the latter, because the #include slows down compilation. A godot header file with forward declarations for all godot classes would be nice.

Mahmoud answered 13/10, 2023 at 16:24 Comment(0)
M
0

I raised an issue, see https://github.com/godotengine/godot-cpp/issues/1273

Mahmoud answered 18/10, 2023 at 16:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.