@@ -35,10 +35,6 @@
#include "core/object.h"
#include "core/print_string.h"
-/**
- @author Juan Linietsky <[email protected]>
-*/
-
/** To bind more then 6 parameters include this:
* #include "core/method_bind_ext.gen.inc"
*/
@@ -33,9 +33,7 @@
#include "core/math/math_funcs.h"
#include "core/ustring.h"
+
struct Color {
union {
@@ -37,10 +37,6 @@
#include "core/simple_type.h"
#include "core/typedefs.h"
#define COMMA(N) _COMMA_##N
#define _COMMA_0
#define _COMMA_1 ,
#include "core/os/file_access.h"
class ImageLoader;
class ImageFormatLoader {
@@ -33,9 +33,6 @@
#include "core/os/thread.h"
#include "core/resource.h"
class ResourceInteractiveLoader : public Reference {
@@ -33,10 +33,6 @@
class ResourceFormatSaver : public Reference {
GDCLASS(ResourceFormatSaver, Reference);
#include "core/set.h"
// based on the very nice implementation of rb-trees by:
// https://web.archive.org/web/20120507164830/http://web.mit.edu/~emin/www/source_code/red_black_tree/index.html
@@ -36,10 +36,6 @@
#include "core/math/quat.h"
class Basis {
public:
Vector3 elements[3];
@@ -38,9 +38,7 @@
#include "core/pool_vector.h"
#include "core/variant.h"
#include "core/vector.h"
class BSP_Tree {
enum {
@@ -34,10 +34,6 @@
#include "core/math/rect2.h"
#include "core/math/transform.h"
struct CameraMatrix {
enum Planes {
@@ -41,10 +41,6 @@
class Geometry {
Geometry();
@@ -38,10 +38,6 @@
typedef uint32_t OctreeElementID;
#define OCTREE_ELEMENT_INVALID_ID 0
class Quat {
real_t x, y, z, w;
#include "core/math/basis.h"
#include "core/math/plane.h"
class Transform {
Basis basis;
#include <stdio.h>
#ifdef DEBUG_ENABLED
#define DEBUG_METHODS_ENABLED
#endif
#include "core/string_name.h"
class NodePath {
struct Data {
//@ TODO, excellent candidate for THREAD_SAFE MACRO, should go through all these and add THREAD_SAFE where it applies
class DirAccess {
/**
* Input Event classes. These are used in the main loop.
* The events are pretty obvious.
/*
Special Key:
#include "core/reference.h"
#include "core/script_language.h"
class MainLoop : public Object {
GDCLASS(MainLoop, Object);
#include <stddef.h>
#ifndef PAD_ALIGN
#define PAD_ALIGN 16 //must always be greater than this at much
#include <stdarg.h>
class Mutex;
class OS {
#include "core/error_list.h"
class Semaphore {
protected:
static Semaphore *(*create_func)();
typedef void (*ThreadCreateCallback)(void *p_userdata);
class Thread {
@@ -77,10 +77,6 @@ struct MemoryPool {
static void cleanup();
};
template <class T>
class PoolVector {
#include "core/os/thread_safe.h"
class ProjectSettings : public Object {
GDCLASS(ProjectSettings, Object);
@@ -36,9 +36,6 @@
#include "core/ref_ptr.h"
#include "core/safe_refcount.h"
class Reference : public Object {
GDCLASS(Reference, Object);
@@ -31,10 +31,6 @@
#ifndef REGISTER_CORE_TYPES_H
#define REGISTER_CORE_TYPES_H
void register_core_types();
void register_core_settings();
void register_core_singletons();
#include "core/self_list.h"
#define RES_BASE_EXTENSION(m_ext) \
public: \
static void register_custom_data_to_otdb() { ClassDB::add_resource_base_extension(m_ext, get_class_static()); } \
class RID_OwnerBase;
class RID_Data {
#include "core/pair.h"
class ScriptLanguage;
typedef void (*ScriptEditRequestFunction)(const String &p_path);
#include "core/os/memory.h"
@@ -34,9 +34,6 @@
#include "core/os/mutex.h"
struct StaticCString {
class CharProxy {
friend class CharString;
#ifndef VARIANT_H
#define VARIANT_H
#include "core/array.h"
#include "core/color.h"
#include "core/dictionary.h"
@@ -45,10 +45,6 @@
class ShaderGLES3 {
struct Enum {
#include "core/io/image_loader.h"
class ImageLoaderPNG : public ImageFormatLoader {
private:
static PoolVector<uint8_t> lossless_pack_png(const Ref<Image> &p_image);
#ifndef REGISTER_DRIVER_TYPES_H
#define REGISTER_DRIVER_TYPES_H
void register_core_driver_types();
void unregister_core_driver_types();
@@ -40,10 +40,6 @@
#include <sys/types.h>
#include <unistd.h>
class DirAccessUnix : public DirAccess {
DIR *dir_stream;
#if defined(UNIX_ENABLED) || defined(LIBC_FILEIO_ENABLED)
typedef void (*CloseNotificationFunc)(const String &p_file, int p_flags);
class FileAccessUnix : public FileAccess {
#ifndef OS_UNIX_H
#define OS_UNIX_H
#ifdef UNIX_ENABLED
#include "core/os/os.h"
@@ -36,9 +36,7 @@
#if defined(UNIX_ENABLED) || defined(PTHREAD_ENABLED)
#include <semaphore.h>
class SemaphorePosix : public Semaphore {
mutable sem_t sem;
#ifndef THREAD_POSIX_H
#define THREAD_POSIX_H
#if (defined(UNIX_ENABLED) || defined(PTHREAD_ENABLED)) && !defined(NO_THREADS)
class FileAccessWindows : public FileAccess {
FILE *f;
#include <windows.h>
class MutexWindows : public Mutex {
#ifdef WINDOWS_USE_MUTEX
class SemaphoreWindows : public Semaphore {
mutable HANDLE semaphore;
class ThreadWindows : public Thread {
ThreadCreateCallback callback;
@@ -38,9 +38,6 @@
#include "scene/gui/label.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/tree.h"
class CreateDialog : public ConfirmationDialog {
@@ -43,9 +43,6 @@
#include "editor_scale.h"
class EditorAbout : public AcceptDialog {
@@ -44,9 +44,6 @@
class DependencyRemoveDialog;
class EditorFileDialog : public ConfirmationDialog {
GDCLASS(EditorFileDialog, ConfirmationDialog);
@@ -86,10 +86,6 @@
#include "scene/gui/viewport_container.h"
typedef void (*EditorNodeInitCallback)();
typedef void (*EditorPluginInitializeCallback)();
typedef bool (*EditorBuildCallback)();
#include "scene/main/node.h"
#include "scene/resources/texture.h"
class EditorNode;
class Spatial;
class Camera;
#include "scene/2d/polygon_2d.h"
#include "scene/gui/tool_button.h"
class CanvasItemEditor;
class AbstractPolygon2DEditor : public HBoxContainer {
@@ -40,9 +40,6 @@
#include "scene/gui/graph_edit.h"
#include "scene/gui/popup.h"
class AnimationNodeBlendSpace2DEditor : public AnimationTreeNodeEditorPlugin {
class AnimationNodeBlendTreeEditor : public AnimationTreeNodeEditorPlugin {
@@ -39,9 +39,6 @@
#include "scene/gui/spin_box.h"
#include "scene/gui/texture_button.h"
class AnimationTrackEditor;
class AnimationPlayerEditorPlugin;
#include "scene/gui/button.h"
class AnimationTreePlayerEditor : public Control {
#include "editor/editor_plugin.h"
#include "scene/3d/camera.h"
class CameraEditor : public Control {
GDCLASS(CameraEditor, Control);
#include "scene/gui/panel_container.h"
class CanvasItemEditorViewport;
#include "editor/plugins/abstract_polygon_2d_editor.h"
#include "scene/2d/collision_polygon_2d.h"
class CollisionPolygon2DEditor : public AbstractPolygon2DEditor {
GDCLASS(CollisionPolygon2DEditor, AbstractPolygon2DEditor);
#include "scene/3d/mesh_instance.h"
class Polygon3DEditor : public HBoxContainer {
@@ -39,10 +39,6 @@
#include "scene/gui/option_button.h"
#include "scene/gui/popup_menu.h"
class ItemListPlugin : public Object {
GDCLASS(ItemListPlugin, Object);
#include "scene/2d/light_occluder_2d.h"
class LightOccluder2DEditor : public AbstractPolygon2DEditor {
GDCLASS(LightOccluder2DEditor, AbstractPolygon2DEditor);
#include "scene/3d/multimesh_instance.h"
class MultiMeshEditor : public Control {
GDCLASS(MultiMeshEditor, Control);
#include "scene/2d/navigation_polygon.h"
class NavigationPolygonEditor : public AbstractPolygon2DEditor {
GDCLASS(NavigationPolygonEditor, AbstractPolygon2DEditor);
#include "scene/3d/particles.h"
class ParticlesEditorBase : public Control {
GDCLASS(ParticlesEditorBase, Control);
#include "scene/2d/path_2d.h"
class Path2DEditor : public HBoxContainer {
#include "scene/gui/scroll_container.h"
class Polygon2DEditor : public AbstractPolygon2DEditor {
GDCLASS(Polygon2DEditor, AbstractPolygon2DEditor);
@@ -37,9 +37,6 @@
#include "scene/3d/light.h"
#include "scene/3d/visual_instance.h"
class SpatialEditor;
#include "scene/gui/menu_button.h"
class TileMapEditor : public VBoxContainer {
GDCLASS(TileMapEditor, VBoxContainer);
@@ -46,10 +46,6 @@
#include "scene/gui/texture_rect.h"
class PropertyValueEvaluator;
class CreateDialog;
class PropertySelector;
@@ -37,9 +37,7 @@
#include "scene/gui/dialogs.h"
class SceneTreeEditor : public Control {
GDCLASS(SceneTreeEditor, Control);
#ifndef MAIN_H
#define MAIN_H
#include "core/os/main_loop.h"
namespace TestGUI {
MainLoop *test();
#ifndef TEST_PHYSICS_H
#define TEST_PHYSICS_H
namespace TestPhysics {
#ifndef TEST_RENDER_H
#define TEST_RENDER_H
namespace TestRender {
@@ -35,9 +35,6 @@
#include "editor/pane_drag.h"
#include "grid_map.h"
class SpatialEditorPlugin;
class ImageLoaderHDR : public ImageFormatLoader {
class ImageLoaderJPG : public ImageFormatLoader {
class ImageLoaderTinyEXR : public ImageFormatLoader {
class ImageLoaderWEBP : public ImageFormatLoader {
#include <jni.h>
#include <pthread.h>
@@ -41,9 +41,6 @@
#include "core/os/dir_access.h"
#include "drivers/unix/dir_access_unix.h"
class DirAccessOSX : public DirAccessUnix {
virtual String fix_unicode_name(const char *p_name) const;
@@ -51,9 +51,6 @@
#include <CoreVideo/CoreVideo.h>
#undef CursorShape
class OS_OSX : public OS_Unix {
@@ -47,9 +47,6 @@
#include "servers/visual_server.h"
class OS_Server : public OS_Unix {
@@ -50,9 +50,6 @@
class OS_UWP : public OS {
@@ -56,10 +56,6 @@
#include <windowsx.h>
typedef struct {
BYTE bWidth; // Width, in pixels, of the image
BYTE bHeight; // Height, in pixels, of the image
@@ -31,9 +31,6 @@
#ifndef CONTEXT_GL_X11_H
#define CONTEXT_GL_X11_H
#ifdef X11_ENABLED
#if defined(OPENGL_ENABLED)
#ifndef KEY_MAPPING_X11_H
#define KEY_MAPPING_X11_H
#include <X11/XF86keysym.h>
#include <X11/Xlib.h>
#define XK_MISCELLANY
@@ -77,9 +77,6 @@ typedef struct _xrr_monitor_info {
} xrr_monitor_info;
class OS_X11 : public OS_Unix {
#include "scene/2d/node_2d.h"
class CPUParticles2D : public Node2D {
GDCLASS(CPUParticles2D, Node2D);
@@ -35,9 +35,7 @@
#include "scene/3d/spatial_velocity_tracker.h"
#include "scene/main/viewport.h"
#include "scene/resources/environment.h"
class Camera : public Spatial {
GDCLASS(Camera, Spatial);
#include "core/rid.h"
class CPUParticles : public GeometryInstance {
GDCLASS(CPUParticles, GeometryInstance);
class Light : public VisualInstance {
GDCLASS(Light, VisualInstance);
#include "scene/resources/mesh.h"
class MeshInstance : public GeometryInstance {
GDCLASS(MeshInstance, GeometryInstance);
#include "scene/resources/multimesh.h"
class MultiMeshInstance : public GeometryInstance {
GDCLASS(MultiMeshInstance, GeometryInstance);
#include "scene/resources/material.h"
class Particles : public GeometryInstance {
GDCLASS(Particles, GeometryInstance);
@@ -32,9 +32,6 @@
#define PORTAL_H
/* Portal Logic:
If a portal is placed next (very close to) a similar, opposing portal, they automatically connect,
#include "scene/resources/room.h"
/* RoomInstance Logic:
a) Instances that belong to the room are drawn only if the room is visible (seen through portal, or player inside)
b) Instances that don't belong to any room are considered to belong to the root room (RID empty)
#include "scene/3d/spatial.h"
#ifndef _3D_DISABLED
typedef int BoneId;