Remove empty lines around braces with the formatting script
This commit is contained in:
parent
66e3060ea1
commit
02161aad5a
@ -83,7 +83,6 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum SaverFlags {
|
enum SaverFlags {
|
||||||
|
|
||||||
FLAG_RELATIVE_PATHS = 1,
|
FLAG_RELATIVE_PATHS = 1,
|
||||||
FLAG_BUNDLE_RESOURCES = 2,
|
FLAG_BUNDLE_RESOURCES = 2,
|
||||||
FLAG_CHANGE_PATH = 4,
|
FLAG_CHANGE_PATH = 4,
|
||||||
@ -361,7 +360,6 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum ModeFlags {
|
enum ModeFlags {
|
||||||
|
|
||||||
READ = 1,
|
READ = 1,
|
||||||
WRITE = 2,
|
WRITE = 2,
|
||||||
READ_WRITE = 3,
|
READ_WRITE = 3,
|
||||||
@ -561,7 +559,6 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum Priority {
|
enum Priority {
|
||||||
|
|
||||||
PRIORITY_LOW,
|
PRIORITY_LOW,
|
||||||
PRIORITY_NORMAL,
|
PRIORITY_NORMAL,
|
||||||
PRIORITY_HIGH,
|
PRIORITY_HIGH,
|
||||||
|
@ -60,7 +60,6 @@ enum ButtonList {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum JoyButtonList {
|
enum JoyButtonList {
|
||||||
|
|
||||||
JOY_INVALID_BUTTON = -1,
|
JOY_INVALID_BUTTON = -1,
|
||||||
|
|
||||||
// SDL Buttons
|
// SDL Buttons
|
||||||
@ -112,7 +111,6 @@ enum JoyButtonList {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum JoyAxisList {
|
enum JoyAxisList {
|
||||||
|
|
||||||
JOY_INVALID_AXIS = -1,
|
JOY_INVALID_AXIS = -1,
|
||||||
|
|
||||||
// SDL Axes
|
// SDL Axes
|
||||||
|
@ -102,7 +102,6 @@ static voidpf godot_alloc(voidpf opaque, uInt items, uInt size) {
|
|||||||
static void godot_free(voidpf opaque, voidpf address) {
|
static void godot_free(voidpf opaque, voidpf address) {
|
||||||
memfree(address);
|
memfree(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|
||||||
void ZipArchive::close_handle(unzFile p_file) const {
|
void ZipArchive::close_handle(unzFile p_file) const {
|
||||||
|
@ -41,7 +41,6 @@ class HTTPClient : public Reference {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum ResponseCode {
|
enum ResponseCode {
|
||||||
|
|
||||||
// 1xx informational
|
// 1xx informational
|
||||||
RESPONSE_CONTINUE = 100,
|
RESPONSE_CONTINUE = 100,
|
||||||
RESPONSE_SWITCHING_PROTOCOLS = 101,
|
RESPONSE_SWITCHING_PROTOCOLS = 101,
|
||||||
@ -116,7 +115,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum Method {
|
enum Method {
|
||||||
|
|
||||||
METHOD_GET,
|
METHOD_GET,
|
||||||
METHOD_HEAD,
|
METHOD_HEAD,
|
||||||
METHOD_POST,
|
METHOD_POST,
|
||||||
@ -131,7 +129,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum Status {
|
enum Status {
|
||||||
|
|
||||||
STATUS_DISCONNECTED,
|
STATUS_DISCONNECTED,
|
||||||
STATUS_RESOLVING, // Resolving hostname (if passed a hostname)
|
STATUS_RESOLVING, // Resolving hostname (if passed a hostname)
|
||||||
STATUS_CANT_RESOLVE,
|
STATUS_CANT_RESOLVE,
|
||||||
@ -150,7 +147,6 @@ private:
|
|||||||
static const int HOST_MIN_LEN = 4;
|
static const int HOST_MIN_LEN = 4;
|
||||||
|
|
||||||
enum Port {
|
enum Port {
|
||||||
|
|
||||||
PORT_HTTP = 80,
|
PORT_HTTP = 80,
|
||||||
PORT_HTTPS = 443,
|
PORT_HTTPS = 443,
|
||||||
|
|
||||||
|
@ -80,7 +80,6 @@ const char *Image::format_names[Image::FORMAT_MAX] = {
|
|||||||
"ETC2_RGB8A1",
|
"ETC2_RGB8A1",
|
||||||
"ETC2_RA_AS_RG",
|
"ETC2_RA_AS_RG",
|
||||||
"FORMAT_DXT5_RA_AS_RG",
|
"FORMAT_DXT5_RA_AS_RG",
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
SavePNGFunc Image::save_png_func = nullptr;
|
SavePNGFunc Image::save_png_func = nullptr;
|
||||||
|
@ -66,7 +66,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum Format {
|
enum Format {
|
||||||
|
|
||||||
FORMAT_L8, //luminance
|
FORMAT_L8, //luminance
|
||||||
FORMAT_LA8, //luminance-alpha
|
FORMAT_LA8, //luminance-alpha
|
||||||
FORMAT_R8,
|
FORMAT_R8,
|
||||||
@ -111,7 +110,6 @@ public:
|
|||||||
|
|
||||||
static const char *format_names[FORMAT_MAX];
|
static const char *format_names[FORMAT_MAX];
|
||||||
enum Interpolation {
|
enum Interpolation {
|
||||||
|
|
||||||
INTERPOLATE_NEAREST,
|
INTERPOLATE_NEAREST,
|
||||||
INTERPOLATE_BILINEAR,
|
INTERPOLATE_BILINEAR,
|
||||||
INTERPOLATE_CUBIC,
|
INTERPOLATE_CUBIC,
|
||||||
|
@ -42,7 +42,6 @@ class IP : public Object {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum ResolverStatus {
|
enum ResolverStatus {
|
||||||
|
|
||||||
RESOLVER_STATUS_NONE,
|
RESOLVER_STATUS_NONE,
|
||||||
RESOLVER_STATUS_WAITING,
|
RESOLVER_STATUS_WAITING,
|
||||||
RESOLVER_STATUS_DONE,
|
RESOLVER_STATUS_DONE,
|
||||||
@ -50,7 +49,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum Type {
|
enum Type {
|
||||||
|
|
||||||
TYPE_NONE = 0,
|
TYPE_NONE = 0,
|
||||||
TYPE_IPV4 = 1,
|
TYPE_IPV4 = 1,
|
||||||
TYPE_IPV6 = 2,
|
TYPE_IPV6 = 2,
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
#include "ip_address.h"
|
#include "ip_address.h"
|
||||||
/*
|
/*
|
||||||
IP_Address::operator Variant() const {
|
IP_Address::operator Variant() const {
|
||||||
|
|
||||||
return operator String();
|
return operator String();
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@ class JSON {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum Expecting {
|
enum Expecting {
|
||||||
|
|
||||||
EXPECT_OBJECT,
|
EXPECT_OBJECT,
|
||||||
EXPECT_OBJECT_KEY,
|
EXPECT_OBJECT_KEY,
|
||||||
EXPECT_COLON,
|
EXPECT_COLON,
|
||||||
|
@ -102,7 +102,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum RPCMode {
|
enum RPCMode {
|
||||||
|
|
||||||
RPC_MODE_DISABLED, // No rpc for this method, calls to this will be blocked (default)
|
RPC_MODE_DISABLED, // No rpc for this method, calls to this will be blocked (default)
|
||||||
RPC_MODE_REMOTE, // Using rpc() on it will call method / set property in all remote peers
|
RPC_MODE_REMOTE, // Using rpc() on it will call method / set property in all remote peers
|
||||||
RPC_MODE_MASTER, // Using rpc() on it will call method on wherever the master is, be it local or remote
|
RPC_MODE_MASTER, // Using rpc() on it will call method on wherever the master is, be it local or remote
|
||||||
|
@ -41,7 +41,6 @@
|
|||||||
#define print_bl(m_what) (void)(m_what)
|
#define print_bl(m_what) (void)(m_what)
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
//numbering must be different from variant, in case new variant types are added (variant must be always contiguous for jumptable optimization)
|
//numbering must be different from variant, in case new variant types are added (variant must be always contiguous for jumptable optimization)
|
||||||
VARIANT_NIL = 1,
|
VARIANT_NIL = 1,
|
||||||
VARIANT_BOOL = 2,
|
VARIANT_BOOL = 2,
|
||||||
@ -90,7 +89,6 @@ enum {
|
|||||||
FORMAT_VERSION = 3,
|
FORMAT_VERSION = 3,
|
||||||
FORMAT_VERSION_CAN_RENAME_DEPS = 1,
|
FORMAT_VERSION_CAN_RENAME_DEPS = 1,
|
||||||
FORMAT_VERSION_NO_NODEPATH_PROPERTY = 3,
|
FORMAT_VERSION_NO_NODEPATH_PROPERTY = 3,
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void ResourceLoaderBinary::_advance_padding(uint32_t p_len) {
|
void ResourceLoaderBinary::_advance_padding(uint32_t p_len) {
|
||||||
|
@ -63,7 +63,6 @@ class ResourceSaver {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum SaverFlags {
|
enum SaverFlags {
|
||||||
|
|
||||||
FLAG_RELATIVE_PATHS = 1,
|
FLAG_RELATIVE_PATHS = 1,
|
||||||
FLAG_BUNDLE_RESOURCES = 2,
|
FLAG_BUNDLE_RESOURCES = 2,
|
||||||
FLAG_CHANGE_PATH = 4,
|
FLAG_CHANGE_PATH = 4,
|
||||||
|
@ -42,7 +42,6 @@ class StreamPeerTCP : public StreamPeer {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum Status {
|
enum Status {
|
||||||
|
|
||||||
STATUS_NONE,
|
STATUS_NONE,
|
||||||
STATUS_CONNECTING,
|
STATUS_CONNECTING,
|
||||||
STATUS_CONNECTED,
|
STATUS_CONNECTED,
|
||||||
|
@ -241,7 +241,6 @@ Vector<Vector<Face3>> Geometry3D::separate_objects(Vector<Face3> p_array) {
|
|||||||
/*** GEOMETRY WRAPPER ***/
|
/*** GEOMETRY WRAPPER ***/
|
||||||
|
|
||||||
enum _CellFlags {
|
enum _CellFlags {
|
||||||
|
|
||||||
_CELL_SOLID = 1,
|
_CELL_SOLID = 1,
|
||||||
_CELL_EXTERIOR = 2,
|
_CELL_EXTERIOR = 2,
|
||||||
_CELL_STEP_MASK = 0x1C,
|
_CELL_STEP_MASK = 0x1C,
|
||||||
@ -262,7 +261,6 @@ enum _CellFlags {
|
|||||||
_CELL_PREV_Z_POS = 5 << 5,
|
_CELL_PREV_Z_POS = 5 << 5,
|
||||||
_CELL_PREV_Z_NEG = 6 << 5,
|
_CELL_PREV_Z_NEG = 6 << 5,
|
||||||
_CELL_PREV_FIRST = 7 << 5,
|
_CELL_PREV_FIRST = 7 << 5,
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline void _plot_face(uint8_t ***p_cell_status, int x, int y, int z, int len_x, int len_y, int len_z, const Vector3 &voxelsize, const Face3 &p_face) {
|
static inline void _plot_face(uint8_t ***p_cell_status, int x, int y, int z, int len_x, int len_y, int len_z, const Vector3 &voxelsize, const Face3 &p_face) {
|
||||||
|
@ -66,27 +66,23 @@ enum ClockDirection {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum Orientation {
|
enum Orientation {
|
||||||
|
|
||||||
HORIZONTAL,
|
HORIZONTAL,
|
||||||
VERTICAL
|
VERTICAL
|
||||||
};
|
};
|
||||||
|
|
||||||
enum HAlign {
|
enum HAlign {
|
||||||
|
|
||||||
HALIGN_LEFT,
|
HALIGN_LEFT,
|
||||||
HALIGN_CENTER,
|
HALIGN_CENTER,
|
||||||
HALIGN_RIGHT
|
HALIGN_RIGHT
|
||||||
};
|
};
|
||||||
|
|
||||||
enum VAlign {
|
enum VAlign {
|
||||||
|
|
||||||
VALIGN_TOP,
|
VALIGN_TOP,
|
||||||
VALIGN_CENTER,
|
VALIGN_CENTER,
|
||||||
VALIGN_BOTTOM
|
VALIGN_BOTTOM
|
||||||
};
|
};
|
||||||
|
|
||||||
enum Margin {
|
enum Margin {
|
||||||
|
|
||||||
MARGIN_LEFT,
|
MARGIN_LEFT,
|
||||||
MARGIN_TOP,
|
MARGIN_TOP,
|
||||||
MARGIN_RIGHT,
|
MARGIN_RIGHT,
|
||||||
@ -94,7 +90,6 @@ enum Margin {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum Corner {
|
enum Corner {
|
||||||
|
|
||||||
CORNER_TOP_LEFT,
|
CORNER_TOP_LEFT,
|
||||||
CORNER_TOP_RIGHT,
|
CORNER_TOP_RIGHT,
|
||||||
CORNER_BOTTOM_RIGHT,
|
CORNER_BOTTOM_RIGHT,
|
||||||
|
@ -47,9 +47,7 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
|||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
|
|
||||||
switch (p_source.get_type()) {
|
switch (p_source.get_type()) {
|
||||||
|
|
||||||
case Variant::VECTOR2: {
|
case Variant::VECTOR2: {
|
||||||
|
|
||||||
SETUP_TYPE(Vector2)
|
SETUP_TYPE(Vector2)
|
||||||
|
|
||||||
/**/ TRY_TRANSFER_FIELD("x", x)
|
/**/ TRY_TRANSFER_FIELD("x", x)
|
||||||
@ -59,7 +57,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Variant::RECT2: {
|
case Variant::RECT2: {
|
||||||
|
|
||||||
SETUP_TYPE(Rect2)
|
SETUP_TYPE(Rect2)
|
||||||
|
|
||||||
/**/ TRY_TRANSFER_FIELD("x", position.x)
|
/**/ TRY_TRANSFER_FIELD("x", position.x)
|
||||||
@ -71,7 +68,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Variant::VECTOR3: {
|
case Variant::VECTOR3: {
|
||||||
|
|
||||||
SETUP_TYPE(Vector3)
|
SETUP_TYPE(Vector3)
|
||||||
|
|
||||||
/**/ TRY_TRANSFER_FIELD("x", x)
|
/**/ TRY_TRANSFER_FIELD("x", x)
|
||||||
@ -82,7 +78,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Variant::PLANE: {
|
case Variant::PLANE: {
|
||||||
|
|
||||||
SETUP_TYPE(Plane)
|
SETUP_TYPE(Plane)
|
||||||
|
|
||||||
/**/ TRY_TRANSFER_FIELD("x", normal.x)
|
/**/ TRY_TRANSFER_FIELD("x", normal.x)
|
||||||
@ -94,7 +89,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Variant::QUAT: {
|
case Variant::QUAT: {
|
||||||
|
|
||||||
SETUP_TYPE(Quat)
|
SETUP_TYPE(Quat)
|
||||||
|
|
||||||
/**/ TRY_TRANSFER_FIELD("x", x)
|
/**/ TRY_TRANSFER_FIELD("x", x)
|
||||||
@ -106,7 +100,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Variant::AABB: {
|
case Variant::AABB: {
|
||||||
|
|
||||||
SETUP_TYPE(AABB)
|
SETUP_TYPE(AABB)
|
||||||
|
|
||||||
/**/ TRY_TRANSFER_FIELD("px", position.x)
|
/**/ TRY_TRANSFER_FIELD("px", position.x)
|
||||||
@ -120,7 +113,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Variant::TRANSFORM2D: {
|
case Variant::TRANSFORM2D: {
|
||||||
|
|
||||||
SETUP_TYPE(Transform2D)
|
SETUP_TYPE(Transform2D)
|
||||||
|
|
||||||
/**/ TRY_TRANSFER_FIELD("xx", elements[0][0])
|
/**/ TRY_TRANSFER_FIELD("xx", elements[0][0])
|
||||||
@ -134,7 +126,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Variant::BASIS: {
|
case Variant::BASIS: {
|
||||||
|
|
||||||
SETUP_TYPE(Basis)
|
SETUP_TYPE(Basis)
|
||||||
|
|
||||||
/**/ TRY_TRANSFER_FIELD("xx", elements[0][0])
|
/**/ TRY_TRANSFER_FIELD("xx", elements[0][0])
|
||||||
@ -151,7 +142,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Variant::TRANSFORM: {
|
case Variant::TRANSFORM: {
|
||||||
|
|
||||||
SETUP_TYPE(Transform)
|
SETUP_TYPE(Transform)
|
||||||
|
|
||||||
/**/ TRY_TRANSFER_FIELD("xx", basis.elements[0][0])
|
/**/ TRY_TRANSFER_FIELD("xx", basis.elements[0][0])
|
||||||
|
@ -379,7 +379,6 @@ void Octree<T, use_pairs, AL>::_insert_element(Element *p_element, Octant *p_oct
|
|||||||
|
|
||||||
if (p_octant->aabb.size.x / OCTREE_DIVISOR < element_size) {
|
if (p_octant->aabb.size.x / OCTREE_DIVISOR < element_size) {
|
||||||
//if (p_octant->aabb.size.x*0.5 < element_size) {
|
//if (p_octant->aabb.size.x*0.5 < element_size) {
|
||||||
|
|
||||||
/* at smallest possible size for the element */
|
/* at smallest possible size for the element */
|
||||||
typename Element::OctantOwner owner;
|
typename Element::OctantOwner owner;
|
||||||
owner.octant = p_octant;
|
owner.octant = p_octant;
|
||||||
|
@ -114,7 +114,6 @@ Callable create_custom_callable_function_pointer(T *p_instance,
|
|||||||
const char *p_func_text,
|
const char *p_func_text,
|
||||||
#endif
|
#endif
|
||||||
void (T::*p_method)(P...)) {
|
void (T::*p_method)(P...)) {
|
||||||
|
|
||||||
typedef CallableCustomMethodPointer<T, P...> CCMP; // Messes with memnew otherwise.
|
typedef CallableCustomMethodPointer<T, P...> CCMP; // Messes with memnew otherwise.
|
||||||
CCMP *ccmp = memnew(CCMP(p_instance, p_method));
|
CCMP *ccmp = memnew(CCMP(p_instance, p_method));
|
||||||
#ifdef DEBUG_METHODS_ENABLED
|
#ifdef DEBUG_METHODS_ENABLED
|
||||||
@ -170,7 +169,6 @@ Callable create_custom_callable_function_pointer(T *p_instance,
|
|||||||
const char *p_func_text,
|
const char *p_func_text,
|
||||||
#endif
|
#endif
|
||||||
R (T::*p_method)(P...)) {
|
R (T::*p_method)(P...)) {
|
||||||
|
|
||||||
typedef CallableCustomMethodPointerRet<T, R, P...> CCMP; // Messes with memnew otherwise.
|
typedef CallableCustomMethodPointerRet<T, R, P...> CCMP; // Messes with memnew otherwise.
|
||||||
CCMP *ccmp = memnew(CCMP(p_instance, p_method));
|
CCMP *ccmp = memnew(CCMP(p_instance, p_method));
|
||||||
#ifdef DEBUG_METHODS_ENABLED
|
#ifdef DEBUG_METHODS_ENABLED
|
||||||
@ -226,7 +224,6 @@ Callable create_custom_callable_function_pointer(T *p_instance,
|
|||||||
const char *p_func_text,
|
const char *p_func_text,
|
||||||
#endif
|
#endif
|
||||||
R (T::*p_method)(P...) const) {
|
R (T::*p_method)(P...) const) {
|
||||||
|
|
||||||
typedef CallableCustomMethodPointerRetC<T, R, P...> CCMP; // Messes with memnew otherwise.
|
typedef CallableCustomMethodPointerRetC<T, R, P...> CCMP; // Messes with memnew otherwise.
|
||||||
CCMP *ccmp = memnew(CCMP(p_instance, p_method));
|
CCMP *ccmp = memnew(CCMP(p_instance, p_method));
|
||||||
#ifdef DEBUG_METHODS_ENABLED
|
#ifdef DEBUG_METHODS_ENABLED
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
#include "core/variant/binder_common.h"
|
#include "core/variant/binder_common.h"
|
||||||
|
|
||||||
enum MethodFlags {
|
enum MethodFlags {
|
||||||
|
|
||||||
METHOD_FLAG_NORMAL = 1,
|
METHOD_FLAG_NORMAL = 1,
|
||||||
METHOD_FLAG_EDITOR = 2,
|
METHOD_FLAG_EDITOR = 2,
|
||||||
METHOD_FLAG_NOSCRIPT = 4,
|
METHOD_FLAG_NOSCRIPT = 4,
|
||||||
|
@ -98,7 +98,6 @@ enum PropertyHint {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum PropertyUsageFlags {
|
enum PropertyUsageFlags {
|
||||||
|
|
||||||
PROPERTY_USAGE_STORAGE = 1,
|
PROPERTY_USAGE_STORAGE = 1,
|
||||||
PROPERTY_USAGE_EDITOR = 2,
|
PROPERTY_USAGE_EDITOR = 2,
|
||||||
PROPERTY_USAGE_NETWORK = 4,
|
PROPERTY_USAGE_NETWORK = 4,
|
||||||
@ -406,7 +405,6 @@ class ScriptInstance;
|
|||||||
class Object {
|
class Object {
|
||||||
public:
|
public:
|
||||||
enum ConnectFlags {
|
enum ConnectFlags {
|
||||||
|
|
||||||
CONNECT_DEFERRED = 1,
|
CONNECT_DEFERRED = 1,
|
||||||
CONNECT_PERSIST = 2, // hint for scene to save this connection
|
CONNECT_PERSIST = 2, // hint for scene to save this connection
|
||||||
CONNECT_ONESHOT = 4,
|
CONNECT_ONESHOT = 4,
|
||||||
|
@ -57,7 +57,6 @@ struct SortNetData {
|
|||||||
|
|
||||||
class ScriptServer {
|
class ScriptServer {
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
MAX_LANGUAGES = 16
|
MAX_LANGUAGES = 16
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -81,7 +81,6 @@ public:
|
|||||||
virtual void _set_access_type(AccessType p_access);
|
virtual void _set_access_type(AccessType p_access);
|
||||||
|
|
||||||
enum ModeFlags {
|
enum ModeFlags {
|
||||||
|
|
||||||
READ = 1,
|
READ = 1,
|
||||||
WRITE = 2,
|
WRITE = 2,
|
||||||
READ_WRITE = 3,
|
READ_WRITE = 3,
|
||||||
|
@ -38,7 +38,6 @@ struct _KeyCodeText {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const _KeyCodeText _keycodes[] = {
|
static const _KeyCodeText _keycodes[] = {
|
||||||
|
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
{KEY_ESCAPE ,"Escape"},
|
{KEY_ESCAPE ,"Escape"},
|
||||||
{KEY_TAB ,"Tab"},
|
{KEY_TAB ,"Tab"},
|
||||||
|
@ -294,11 +294,9 @@ enum KeyList {
|
|||||||
|
|
||||||
KEY_DIVISION = 0x00F7,
|
KEY_DIVISION = 0x00F7,
|
||||||
KEY_YDIAERESIS = 0x00FF,
|
KEY_YDIAERESIS = 0x00FF,
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum KeyModifierMask {
|
enum KeyModifierMask {
|
||||||
|
|
||||||
KEY_CODE_MASK = ((1 << 25) - 1), ///< Apply this mask to any keycode to remove modifiers.
|
KEY_CODE_MASK = ((1 << 25) - 1), ///< Apply this mask to any keycode to remove modifiers.
|
||||||
KEY_MODIFIER_MASK = (0xFF << 24), ///< Apply this mask to isolate modifiers.
|
KEY_MODIFIER_MASK = (0xFF << 24), ///< Apply this mask to isolate modifiers.
|
||||||
KEY_MASK_SHIFT = (1 << 25),
|
KEY_MASK_SHIFT = (1 << 25),
|
||||||
@ -314,7 +312,6 @@ enum KeyModifierMask {
|
|||||||
KEY_MASK_KPAD = (1 << 29),
|
KEY_MASK_KPAD = (1 << 29),
|
||||||
KEY_MASK_GROUP_SWITCH = (1 << 30)
|
KEY_MASK_GROUP_SWITCH = (1 << 30)
|
||||||
// bit 31 can't be used because variant uses regular 32 bits int as datatype
|
// bit 31 can't be used because variant uses regular 32 bits int as datatype
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
String keycode_get_string(uint32_t p_code);
|
String keycode_get_string(uint32_t p_code);
|
||||||
|
@ -77,7 +77,6 @@ public:
|
|||||||
typedef bool (*HasServerFeatureCallback)(const String &p_feature);
|
typedef bool (*HasServerFeatureCallback)(const String &p_feature);
|
||||||
|
|
||||||
enum RenderThreadMode {
|
enum RenderThreadMode {
|
||||||
|
|
||||||
RENDER_THREAD_UNSAFE,
|
RENDER_THREAD_UNSAFE,
|
||||||
RENDER_THREAD_SAFE,
|
RENDER_THREAD_SAFE,
|
||||||
RENDER_SEPARATE_THREAD
|
RENDER_SEPARATE_THREAD
|
||||||
|
@ -43,7 +43,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
POOL_ALLOCATOR_INVALID_ID = -1 ///< default invalid value. use INVALID_ID( id ) to test
|
POOL_ALLOCATOR_INVALID_ID = -1 ///< default invalid value. use INVALID_ID( id ) to test
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -39,7 +39,6 @@ typedef void (*ThreadCreateCallback)(void *p_userdata);
|
|||||||
class Thread {
|
class Thread {
|
||||||
public:
|
public:
|
||||||
enum Priority {
|
enum Priority {
|
||||||
|
|
||||||
PRIORITY_LOW,
|
PRIORITY_LOW,
|
||||||
PRIORITY_NORMAL,
|
PRIORITY_NORMAL,
|
||||||
PRIORITY_HIGH
|
PRIORITY_HIGH
|
||||||
|
@ -44,7 +44,6 @@ struct StaticCString {
|
|||||||
|
|
||||||
class StringName {
|
class StringName {
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
STRING_TABLE_BITS = 12,
|
STRING_TABLE_BITS = 12,
|
||||||
STRING_TABLE_LEN = 1 << STRING_TABLE_BITS,
|
STRING_TABLE_LEN = 1 << STRING_TABLE_BITS,
|
||||||
STRING_TABLE_MASK = STRING_TABLE_LEN - 1
|
STRING_TABLE_MASK = STRING_TABLE_LEN - 1
|
||||||
|
@ -3864,7 +3864,6 @@ String String::xml_escape(bool p_escape_quotes) const {
|
|||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
for (int i=1;i<32;i++) {
|
for (int i=1;i<32;i++) {
|
||||||
|
|
||||||
char chr[2]={i,0};
|
char chr[2]={i,0};
|
||||||
str=str.replace(chr,"&#"+String::num(i)+";");
|
str=str.replace(chr,"&#"+String::num(i)+";");
|
||||||
}*/
|
}*/
|
||||||
|
@ -198,7 +198,6 @@ class String {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
npos = -1 ///<for "some" compatibility with std::string (npos is a huge value in std::string)
|
npos = -1 ///<for "some" compatibility with std::string (npos is a huge value in std::string)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -54,7 +54,6 @@ struct _DefaultComparator {
|
|||||||
template <class T, class Comparator = _DefaultComparator<T>, bool Validate = SORT_ARRAY_VALIDATE_ENABLED>
|
template <class T, class Comparator = _DefaultComparator<T>, bool Validate = SORT_ARRAY_VALIDATE_ENABLED>
|
||||||
class SortArray {
|
class SortArray {
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
INTROSORT_THRESHOLD = 16
|
INTROSORT_THRESHOLD = 16
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -426,7 +426,6 @@ public:
|
|||||||
|
|
||||||
// If this changes the table in variant_op must be updated
|
// If this changes the table in variant_op must be updated
|
||||||
enum Operator {
|
enum Operator {
|
||||||
|
|
||||||
//comparison
|
//comparison
|
||||||
OP_EQUAL,
|
OP_EQUAL,
|
||||||
OP_NOT_EQUAL,
|
OP_NOT_EQUAL,
|
||||||
|
@ -607,7 +607,6 @@ void Variant::call(const StringName &p_method, const Variant **p_args, int p_arg
|
|||||||
r_ret = _get_obj().obj->call(p_method, p_args, p_argcount, r_error);
|
r_ret = _get_obj().obj->call(p_method, p_args, p_argcount, r_error);
|
||||||
|
|
||||||
//else if (type==Variant::METHOD) {
|
//else if (type==Variant::METHOD) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
r_error.error = Callable::CallError::CALL_OK;
|
r_error.error = Callable::CallError::CALL_OK;
|
||||||
|
|
||||||
|
@ -2159,7 +2159,6 @@ static const char *_op_names[Variant::OP_MAX] = {
|
|||||||
"xor",
|
"xor",
|
||||||
"not",
|
"not",
|
||||||
"in"
|
"in"
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
String Variant::get_operator_name(Operator p_op) {
|
String Variant::get_operator_name(Operator p_op) {
|
||||||
|
@ -100,7 +100,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum Expecting {
|
enum Expecting {
|
||||||
|
|
||||||
EXPECT_OBJECT,
|
EXPECT_OBJECT,
|
||||||
EXPECT_OBJECT_KEY,
|
EXPECT_OBJECT_KEY,
|
||||||
EXPECT_COLON,
|
EXPECT_COLON,
|
||||||
|
@ -262,7 +262,6 @@ public:
|
|||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
RID texture_create() override {
|
RID texture_create() override {
|
||||||
|
|
||||||
DummyTexture *texture = memnew(DummyTexture);
|
DummyTexture *texture = memnew(DummyTexture);
|
||||||
ERR_FAIL_COND_V(!texture, RID());
|
ERR_FAIL_COND_V(!texture, RID());
|
||||||
return texture_owner.make_rid(texture);
|
return texture_owner.make_rid(texture);
|
||||||
@ -709,14 +708,11 @@ public:
|
|||||||
/* LIGHTMAP CAPTURE */
|
/* LIGHTMAP CAPTURE */
|
||||||
#if 0
|
#if 0
|
||||||
struct Instantiable {
|
struct Instantiable {
|
||||||
|
|
||||||
SelfList<RasterizerScene::InstanceBase>::List instance_list;
|
SelfList<RasterizerScene::InstanceBase>::List instance_list;
|
||||||
|
|
||||||
_FORCE_INLINE_ void instance_change_notify(bool p_aabb = true, bool p_materials = true) override {
|
_FORCE_INLINE_ void instance_change_notify(bool p_aabb = true, bool p_materials = true) override {
|
||||||
|
|
||||||
SelfList<RasterizerScene::InstanceBase> *instances = instance_list.first();
|
SelfList<RasterizerScene::InstanceBase> *instances = instance_list.first();
|
||||||
while (instances) override {
|
while (instances) override {
|
||||||
|
|
||||||
//instances->self()->base_changed(p_aabb, p_materials);
|
//instances->self()->base_changed(p_aabb, p_materials);
|
||||||
instances = instances->next();
|
instances = instances->next();
|
||||||
}
|
}
|
||||||
@ -725,7 +721,6 @@ public:
|
|||||||
_FORCE_INLINE_ void instance_remove_deps() override {
|
_FORCE_INLINE_ void instance_remove_deps() override {
|
||||||
SelfList<RasterizerScene::InstanceBase> *instances = instance_list.first();
|
SelfList<RasterizerScene::InstanceBase> *instances = instance_list.first();
|
||||||
while (instances) override {
|
while (instances) override {
|
||||||
|
|
||||||
SelfList<RasterizerScene::InstanceBase> *next = instances->next();
|
SelfList<RasterizerScene::InstanceBase> *next = instances->next();
|
||||||
//instances->self()->base_removed();
|
//instances->self()->base_removed();
|
||||||
instances = next;
|
instances = next;
|
||||||
@ -738,7 +733,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct LightmapCapture : public Instantiable {
|
struct LightmapCapture : public Instantiable {
|
||||||
|
|
||||||
Vector<LightmapCaptureOctree> octree;
|
Vector<LightmapCaptureOctree> octree;
|
||||||
AABB bounds;
|
AABB bounds;
|
||||||
Transform cell_xform;
|
Transform cell_xform;
|
||||||
|
@ -203,5 +203,4 @@ Error image_to_png(const Ref<Image> &p_image, Vector<uint8_t> &p_buffer) {
|
|||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace PNGDriverCommon
|
} // namespace PNGDriverCommon
|
||||||
|
@ -41,7 +41,6 @@ Error png_to_image(const uint8_t *p_source, size_t p_size, bool p_force_linear,
|
|||||||
// Append p_image, as a png, to p_buffer.
|
// Append p_image, as a png, to p_buffer.
|
||||||
// Contents of p_buffer is unspecified if error returned.
|
// Contents of p_buffer is unspecified if error returned.
|
||||||
Error image_to_png(const Ref<Image> &p_image, Vector<uint8_t> &p_buffer);
|
Error image_to_png(const Ref<Image> &p_image, Vector<uint8_t> &p_buffer);
|
||||||
|
|
||||||
} // namespace PNGDriverCommon
|
} // namespace PNGDriverCommon
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -3733,13 +3733,11 @@ String RenderingDeviceVulkan::_shader_uniform_debug(RID p_shader, int p_set) {
|
|||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
bool RenderingDeviceVulkan::_uniform_add_binding(Vector<Vector<VkDescriptorSetLayoutBinding> > &bindings, Vector<Vector<UniformInfo> > &uniform_infos, const glslang::TObjectReflection &reflection, RenderingDevice::ShaderStage p_stage, Shader::PushConstant &push_constant, String *r_error) {
|
bool RenderingDeviceVulkan::_uniform_add_binding(Vector<Vector<VkDescriptorSetLayoutBinding> > &bindings, Vector<Vector<UniformInfo> > &uniform_infos, const glslang::TObjectReflection &reflection, RenderingDevice::ShaderStage p_stage, Shader::PushConstant &push_constant, String *r_error) {
|
||||||
|
|
||||||
VkDescriptorSetLayoutBinding layout_binding;
|
VkDescriptorSetLayoutBinding layout_binding;
|
||||||
UniformInfo info;
|
UniformInfo info;
|
||||||
|
|
||||||
switch (reflection.getType()->getBasicType()) {
|
switch (reflection.getType()->getBasicType()) {
|
||||||
case glslang::EbtSampler: {
|
case glslang::EbtSampler: {
|
||||||
|
|
||||||
//print_line("DEBUG: IsSampler");
|
//print_line("DEBUG: IsSampler");
|
||||||
if (reflection.getType()->getSampler().dim == glslang::EsdBuffer) {
|
if (reflection.getType()->getSampler().dim == glslang::EsdBuffer) {
|
||||||
//texture buffers
|
//texture buffers
|
||||||
@ -3837,13 +3835,10 @@ bool RenderingDeviceVulkan::_uniform_add_binding(Vector<Vector<VkDescriptorSetLa
|
|||||||
|
|
||||||
} break;
|
} break;
|
||||||
/*case glslang::EbtReference: {
|
/*case glslang::EbtReference: {
|
||||||
|
|
||||||
} break;*/
|
} break;*/
|
||||||
/*case glslang::EbtAtomicUint: {
|
/*case glslang::EbtAtomicUint: {
|
||||||
|
|
||||||
} break;*/
|
} break;*/
|
||||||
default: {
|
default: {
|
||||||
|
|
||||||
if (reflection.getType()->getQualifier().hasOffset() || reflection.name.find(".") != std::string::npos) {
|
if (reflection.getType()->getQualifier().hasOffset() || reflection.name.find(".") != std::string::npos) {
|
||||||
//member of uniform block?
|
//member of uniform block?
|
||||||
return true;
|
return true;
|
||||||
@ -6837,7 +6832,6 @@ void RenderingDeviceVulkan::full_barrier() {
|
|||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
void RenderingDeviceVulkan::draw_list_render_secondary_to_framebuffer(ID p_framebuffer, ID *p_draw_lists, uint32_t p_draw_list_count, InitialAction p_initial_action, FinalAction p_final_action, const Vector<Variant> &p_clear_colors) {
|
void RenderingDeviceVulkan::draw_list_render_secondary_to_framebuffer(ID p_framebuffer, ID *p_draw_lists, uint32_t p_draw_list_count, InitialAction p_initial_action, FinalAction p_final_action, const Vector<Variant> &p_clear_colors) {
|
||||||
|
|
||||||
VkCommandBuffer frame_cmdbuf = frames[frame].frame_buffer;
|
VkCommandBuffer frame_cmdbuf = frames[frame].frame_buffer;
|
||||||
ERR_FAIL_COND(!frame_cmdbuf);
|
ERR_FAIL_COND(!frame_cmdbuf);
|
||||||
|
|
||||||
@ -6866,7 +6860,6 @@ void RenderingDeviceVulkan::draw_list_render_secondary_to_framebuffer(ID p_frame
|
|||||||
|
|
||||||
ID screen_format = screen_get_framebuffer_format();
|
ID screen_format = screen_get_framebuffer_format();
|
||||||
{
|
{
|
||||||
|
|
||||||
VkCommandBuffer *command_buffers = (VkCommandBuffer *)alloca(sizeof(VkCommandBuffer) * p_draw_list_count);
|
VkCommandBuffer *command_buffers = (VkCommandBuffer *)alloca(sizeof(VkCommandBuffer) * p_draw_list_count);
|
||||||
uint32_t command_buffer_count = 0;
|
uint32_t command_buffer_count = 0;
|
||||||
|
|
||||||
@ -6890,7 +6883,6 @@ void RenderingDeviceVulkan::draw_list_render_secondary_to_framebuffer(ID p_frame
|
|||||||
}
|
}
|
||||||
|
|
||||||
vkCmdEndRenderPass(frame_cmdbuf);
|
vkCmdEndRenderPass(frame_cmdbuf);
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1010,7 +1010,6 @@ Error VulkanContext::_update_swap_chain(Window *window) {
|
|||||||
|
|
||||||
{
|
{
|
||||||
const VkAttachmentDescription attachment = {
|
const VkAttachmentDescription attachment = {
|
||||||
|
|
||||||
/*flags*/ 0,
|
/*flags*/ 0,
|
||||||
/*format*/ format,
|
/*format*/ format,
|
||||||
/*samples*/ VK_SAMPLE_COUNT_1_BIT,
|
/*samples*/ VK_SAMPLE_COUNT_1_BIT,
|
||||||
|
@ -476,7 +476,6 @@ void EditorVisualProfiler::_graph_tex_draw() {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
if (hover_metric != -1 && frame_metrics[hover_metric].valid) {
|
if (hover_metric != -1 && frame_metrics[hover_metric].valid) {
|
||||||
|
|
||||||
int max_frames = frame_metrics.size();
|
int max_frames = frame_metrics.size();
|
||||||
int frame = frame_metrics[hover_metric].frame_number - (frame_metrics[last_metric].frame_number - max_frames + 1);
|
int frame = frame_metrics[hover_metric].frame_number - (frame_metrics[last_metric].frame_number - max_frames + 1);
|
||||||
if (frame < 0)
|
if (frame < 0)
|
||||||
@ -671,7 +670,6 @@ Vector<Vector<String>> EditorVisualProfiler::get_data_as_csv() const {
|
|||||||
const Vector<EditorFrameProfiler::Metric::Category> &categories = frame_metrics[0].categories;
|
const Vector<EditorFrameProfiler::Metric::Category> &categories = frame_metrics[0].categories;
|
||||||
|
|
||||||
for (int j = 0; j < categories.size(); j++) {
|
for (int j = 0; j < categories.size(); j++) {
|
||||||
|
|
||||||
const EditorFrameProfiler::Metric::Category &c = categories[j];
|
const EditorFrameProfiler::Metric::Category &c = categories[j];
|
||||||
signatures.push_back(c.signature);
|
signatures.push_back(c.signature);
|
||||||
|
|
||||||
@ -688,7 +686,6 @@ Vector<Vector<String>> EditorVisualProfiler::get_data_as_csv() const {
|
|||||||
int index = last_metric;
|
int index = last_metric;
|
||||||
|
|
||||||
for (int i = 0; i < frame_metrics.size(); i++) {
|
for (int i = 0; i < frame_metrics.size(); i++) {
|
||||||
|
|
||||||
++index;
|
++index;
|
||||||
|
|
||||||
if (index >= frame_metrics.size()) {
|
if (index >= frame_metrics.size()) {
|
||||||
@ -702,7 +699,6 @@ Vector<Vector<String>> EditorVisualProfiler::get_data_as_csv() const {
|
|||||||
const Vector<EditorFrameProfiler::Metric::Category> &frame_cat = frame_metrics[index].categories;
|
const Vector<EditorFrameProfiler::Metric::Category> &frame_cat = frame_metrics[index].categories;
|
||||||
|
|
||||||
for (int j = 0; j < frame_cat.size(); j++) {
|
for (int j = 0; j < frame_cat.size(); j++) {
|
||||||
|
|
||||||
const EditorFrameProfiler::Metric::Category &c = frame_cat[j];
|
const EditorFrameProfiler::Metric::Category &c = frame_cat[j];
|
||||||
values.write[it++] = String::num_real(c.total_time);
|
values.write[it++] = String::num_real(c.total_time);
|
||||||
|
|
||||||
|
@ -40,7 +40,6 @@
|
|||||||
|
|
||||||
class EditorHistory {
|
class EditorHistory {
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
HISTORY_MAX = 64
|
HISTORY_MAX = 64
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -91,7 +91,6 @@ class EditorHelp : public VBoxContainer {
|
|||||||
GDCLASS(EditorHelp, VBoxContainer);
|
GDCLASS(EditorHelp, VBoxContainer);
|
||||||
|
|
||||||
enum Page {
|
enum Page {
|
||||||
|
|
||||||
PAGE_CLASS_LIST,
|
PAGE_CLASS_LIST,
|
||||||
PAGE_CLASS_DESC,
|
PAGE_CLASS_DESC,
|
||||||
PAGE_CLASS_PREV,
|
PAGE_CLASS_PREV,
|
||||||
|
@ -595,7 +595,6 @@ class EditorPropertyResource : public EditorProperty {
|
|||||||
GDCLASS(EditorPropertyResource, EditorProperty);
|
GDCLASS(EditorPropertyResource, EditorProperty);
|
||||||
|
|
||||||
enum MenuOption {
|
enum MenuOption {
|
||||||
|
|
||||||
OBJ_MENU_LOAD = 0,
|
OBJ_MENU_LOAD = 0,
|
||||||
OBJ_MENU_EDIT = 1,
|
OBJ_MENU_EDIT = 1,
|
||||||
OBJ_MENU_CLEAR = 2,
|
OBJ_MENU_CLEAR = 2,
|
||||||
|
@ -36,7 +36,6 @@
|
|||||||
class EditorRun {
|
class EditorRun {
|
||||||
public:
|
public:
|
||||||
enum Status {
|
enum Status {
|
||||||
|
|
||||||
STATUS_PLAY,
|
STATUS_PLAY,
|
||||||
STATUS_PAUSED,
|
STATUS_PAUSED,
|
||||||
STATUS_STOP
|
STATUS_STOP
|
||||||
|
@ -313,7 +313,6 @@ public:
|
|||||||
|
|
||||||
struct Node {
|
struct Node {
|
||||||
enum Type {
|
enum Type {
|
||||||
|
|
||||||
TYPE_NODE,
|
TYPE_NODE,
|
||||||
TYPE_JOINT,
|
TYPE_JOINT,
|
||||||
TYPE_SKELETON, //this bone is not collada, it's added afterwards as optimization
|
TYPE_SKELETON, //this bone is not collada, it's added afterwards as optimization
|
||||||
|
@ -1716,14 +1716,12 @@ void Skeleton3DGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
|
|||||||
Vector3 face_points[4];
|
Vector3 face_points[4];
|
||||||
|
|
||||||
for (int j=0;j<4;j++) {
|
for (int j=0;j<4;j++) {
|
||||||
|
|
||||||
float v[3];
|
float v[3];
|
||||||
v[0]=1.0;
|
v[0]=1.0;
|
||||||
v[1]=1-2*((j>>1)&1);
|
v[1]=1-2*((j>>1)&1);
|
||||||
v[2]=v[1]*(1-2*(j&1));
|
v[2]=v[1]*(1-2*(j&1));
|
||||||
|
|
||||||
for (int k=0;k<3;k++) {
|
for (int k=0;k<3;k++) {
|
||||||
|
|
||||||
if (i<3)
|
if (i<3)
|
||||||
face_points[j][(i+k)%3]=v[k]*(i>=3?-1:1);
|
face_points[j][(i+k)%3]=v[k]*(i>=3?-1:1);
|
||||||
else
|
else
|
||||||
|
@ -3389,7 +3389,6 @@ void CanvasItemEditor::_draw_selection() {
|
|||||||
|
|
||||||
if (canvas_item->_edit_use_rect()) {
|
if (canvas_item->_edit_use_rect()) {
|
||||||
Vector2 pre_drag_endpoints[4] = {
|
Vector2 pre_drag_endpoints[4] = {
|
||||||
|
|
||||||
pre_drag_xform.xform(se->pre_drag_rect.position),
|
pre_drag_xform.xform(se->pre_drag_rect.position),
|
||||||
pre_drag_xform.xform(se->pre_drag_rect.position + Vector2(se->pre_drag_rect.size.x, 0)),
|
pre_drag_xform.xform(se->pre_drag_rect.position + Vector2(se->pre_drag_rect.size.x, 0)),
|
||||||
pre_drag_xform.xform(se->pre_drag_rect.position + se->pre_drag_rect.size),
|
pre_drag_xform.xform(se->pre_drag_rect.position + se->pre_drag_rect.size),
|
||||||
|
@ -44,7 +44,6 @@ class CollisionPolygon3DEditor : public HBoxContainer {
|
|||||||
|
|
||||||
UndoRedo *undo_redo;
|
UndoRedo *undo_redo;
|
||||||
enum Mode {
|
enum Mode {
|
||||||
|
|
||||||
MODE_CREATE,
|
MODE_CREATE,
|
||||||
MODE_EDIT,
|
MODE_EDIT,
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ class CPUParticles3DEditor : public GPUParticles3DEditorBase {
|
|||||||
GDCLASS(CPUParticles3DEditor, GPUParticles3DEditorBase);
|
GDCLASS(CPUParticles3DEditor, GPUParticles3DEditorBase);
|
||||||
|
|
||||||
enum Menu {
|
enum Menu {
|
||||||
|
|
||||||
MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_NODE,
|
MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_NODE,
|
||||||
MENU_OPTION_CLEAR_EMISSION_VOLUME,
|
MENU_OPTION_CLEAR_EMISSION_VOLUME,
|
||||||
MENU_OPTION_RESTART
|
MENU_OPTION_RESTART
|
||||||
|
@ -42,7 +42,6 @@ class GPUParticles2DEditorPlugin : public EditorPlugin {
|
|||||||
GDCLASS(GPUParticles2DEditorPlugin, EditorPlugin);
|
GDCLASS(GPUParticles2DEditorPlugin, EditorPlugin);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
MENU_GENERATE_VISIBILITY_RECT,
|
MENU_GENERATE_VISIBILITY_RECT,
|
||||||
MENU_LOAD_EMISSION_MASK,
|
MENU_LOAD_EMISSION_MASK,
|
||||||
MENU_CLEAR_EMISSION_MASK,
|
MENU_CLEAR_EMISSION_MASK,
|
||||||
|
@ -71,7 +71,6 @@ class GPUParticles3DEditor : public GPUParticles3DEditorBase {
|
|||||||
GPUParticles3D *node;
|
GPUParticles3D *node;
|
||||||
|
|
||||||
enum Menu {
|
enum Menu {
|
||||||
|
|
||||||
MENU_OPTION_GENERATE_AABB,
|
MENU_OPTION_GENERATE_AABB,
|
||||||
MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_NODE,
|
MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_NODE,
|
||||||
MENU_OPTION_CLEAR_EMISSION_VOLUME,
|
MENU_OPTION_CLEAR_EMISSION_VOLUME,
|
||||||
|
@ -49,7 +49,6 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum Flags {
|
enum Flags {
|
||||||
|
|
||||||
FLAG_ICON = 1,
|
FLAG_ICON = 1,
|
||||||
FLAG_CHECKABLE = 2,
|
FLAG_CHECKABLE = 2,
|
||||||
FLAG_ID = 4,
|
FLAG_ID = 4,
|
||||||
|
@ -40,7 +40,6 @@ class MeshInstance3DEditor : public Control {
|
|||||||
GDCLASS(MeshInstance3DEditor, Control);
|
GDCLASS(MeshInstance3DEditor, Control);
|
||||||
|
|
||||||
enum Menu {
|
enum Menu {
|
||||||
|
|
||||||
MENU_OPTION_CREATE_STATIC_TRIMESH_BODY,
|
MENU_OPTION_CREATE_STATIC_TRIMESH_BODY,
|
||||||
MENU_OPTION_CREATE_TRIMESH_COLLISION_SHAPE,
|
MENU_OPTION_CREATE_TRIMESH_COLLISION_SHAPE,
|
||||||
MENU_OPTION_CREATE_SINGLE_CONVEX_COLLISION_SHAPE,
|
MENU_OPTION_CREATE_SINGLE_CONVEX_COLLISION_SHAPE,
|
||||||
|
@ -46,7 +46,6 @@ class MeshLibraryEditor : public Control {
|
|||||||
int to_erase;
|
int to_erase;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
MENU_OPTION_ADD_ITEM,
|
MENU_OPTION_ADD_ITEM,
|
||||||
MENU_OPTION_REMOVE_ITEM,
|
MENU_OPTION_REMOVE_ITEM,
|
||||||
MENU_OPTION_UPDATE_FROM_SCENE,
|
MENU_OPTION_UPDATE_FROM_SCENE,
|
||||||
|
@ -63,7 +63,6 @@ class MultiMeshEditor : public Control {
|
|||||||
SpinBox *populate_amount;
|
SpinBox *populate_amount;
|
||||||
|
|
||||||
enum Menu {
|
enum Menu {
|
||||||
|
|
||||||
MENU_OPTION_POPULATE
|
MENU_OPTION_POPULATE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -180,7 +180,6 @@ class Node3DEditorViewport : public Control {
|
|||||||
friend class Node3DEditor;
|
friend class Node3DEditor;
|
||||||
friend class ViewportRotationControl;
|
friend class ViewportRotationControl;
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
VIEW_TOP,
|
VIEW_TOP,
|
||||||
VIEW_BOTTOM,
|
VIEW_BOTTOM,
|
||||||
VIEW_LEFT,
|
VIEW_LEFT,
|
||||||
@ -554,7 +553,6 @@ public:
|
|||||||
static const unsigned int VIEWPORTS_COUNT = 4;
|
static const unsigned int VIEWPORTS_COUNT = 4;
|
||||||
|
|
||||||
enum ToolMode {
|
enum ToolMode {
|
||||||
|
|
||||||
TOOL_MODE_SELECT,
|
TOOL_MODE_SELECT,
|
||||||
TOOL_MODE_MOVE,
|
TOOL_MODE_MOVE,
|
||||||
TOOL_MODE_ROTATE,
|
TOOL_MODE_ROTATE,
|
||||||
@ -568,7 +566,6 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum ToolOptions {
|
enum ToolOptions {
|
||||||
|
|
||||||
TOOL_OPT_LOCAL_COORDS,
|
TOOL_OPT_LOCAL_COORDS,
|
||||||
TOOL_OPT_USE_SNAP,
|
TOOL_OPT_USE_SNAP,
|
||||||
TOOL_OPT_OVERRIDE_CAMERA,
|
TOOL_OPT_OVERRIDE_CAMERA,
|
||||||
@ -634,7 +631,6 @@ private:
|
|||||||
} gizmo;
|
} gizmo;
|
||||||
|
|
||||||
enum MenuOption {
|
enum MenuOption {
|
||||||
|
|
||||||
MENU_TOOL_SELECT,
|
MENU_TOOL_SELECT,
|
||||||
MENU_TOOL_MOVE,
|
MENU_TOOL_MOVE,
|
||||||
MENU_TOOL_ROTATE,
|
MENU_TOOL_ROTATE,
|
||||||
|
@ -76,7 +76,6 @@ class Path2DEditor : public HBoxContainer {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum Action {
|
enum Action {
|
||||||
|
|
||||||
ACTION_NONE,
|
ACTION_NONE,
|
||||||
ACTION_MOVING_POINT,
|
ACTION_MOVING_POINT,
|
||||||
ACTION_MOVING_IN,
|
ACTION_MOVING_IN,
|
||||||
|
@ -372,7 +372,6 @@ void ShaderEditor::_bind_methods() {
|
|||||||
void ShaderEditor::ensure_select_current() {
|
void ShaderEditor::ensure_select_current() {
|
||||||
/*
|
/*
|
||||||
if (tab_container->get_child_count() && tab_container->get_current_tab()>=0) {
|
if (tab_container->get_child_count() && tab_container->get_current_tab()>=0) {
|
||||||
|
|
||||||
ShaderTextEditor *ste = Object::cast_to<ShaderTextEditor>(tab_container->get_child(tab_container->get_current_tab()));
|
ShaderTextEditor *ste = Object::cast_to<ShaderTextEditor>(tab_container->get_child(tab_container->get_current_tab()));
|
||||||
if (!ste)
|
if (!ste)
|
||||||
return;
|
return;
|
||||||
|
@ -69,7 +69,6 @@ class ShaderEditor : public PanelContainer {
|
|||||||
GDCLASS(ShaderEditor, PanelContainer);
|
GDCLASS(ShaderEditor, PanelContainer);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
EDIT_UNDO,
|
EDIT_UNDO,
|
||||||
EDIT_REDO,
|
EDIT_REDO,
|
||||||
EDIT_CUT,
|
EDIT_CUT,
|
||||||
|
@ -43,7 +43,6 @@ class TileMapEditor : public VBoxContainer {
|
|||||||
GDCLASS(TileMapEditor, VBoxContainer);
|
GDCLASS(TileMapEditor, VBoxContainer);
|
||||||
|
|
||||||
enum Tool {
|
enum Tool {
|
||||||
|
|
||||||
TOOL_NONE,
|
TOOL_NONE,
|
||||||
TOOL_PAINTING,
|
TOOL_PAINTING,
|
||||||
TOOL_ERASING,
|
TOOL_ERASING,
|
||||||
@ -58,7 +57,6 @@ class TileMapEditor : public VBoxContainer {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum Options {
|
enum Options {
|
||||||
|
|
||||||
OPTION_COPY,
|
OPTION_COPY,
|
||||||
OPTION_ERASE_SELECTION,
|
OPTION_ERASE_SELECTION,
|
||||||
OPTION_FIX_INVALID,
|
OPTION_FIX_INVALID,
|
||||||
|
@ -43,7 +43,6 @@ class VersionControlEditorPlugin : public EditorPlugin {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum ChangeType {
|
enum ChangeType {
|
||||||
|
|
||||||
CHANGE_TYPE_NEW = 0,
|
CHANGE_TYPE_NEW = 0,
|
||||||
CHANGE_TYPE_MODIFIED = 1,
|
CHANGE_TYPE_MODIFIED = 1,
|
||||||
CHANGE_TYPE_RENAMED = 2,
|
CHANGE_TYPE_RENAMED = 2,
|
||||||
|
@ -55,7 +55,6 @@ class SceneTreeDock : public VBoxContainer {
|
|||||||
GDCLASS(SceneTreeDock, VBoxContainer);
|
GDCLASS(SceneTreeDock, VBoxContainer);
|
||||||
|
|
||||||
enum Tool {
|
enum Tool {
|
||||||
|
|
||||||
TOOL_NEW,
|
TOOL_NEW,
|
||||||
TOOL_INSTANCE,
|
TOOL_INSTANCE,
|
||||||
TOOL_EXPAND_COLLAPSE,
|
TOOL_EXPAND_COLLAPSE,
|
||||||
|
@ -93,7 +93,6 @@ float Performance::_get_node_count() const {
|
|||||||
String Performance::get_monitor_name(Monitor p_monitor) const {
|
String Performance::get_monitor_name(Monitor p_monitor) const {
|
||||||
ERR_FAIL_INDEX_V(p_monitor, MONITOR_MAX, String());
|
ERR_FAIL_INDEX_V(p_monitor, MONITOR_MAX, String());
|
||||||
static const char *names[MONITOR_MAX] = {
|
static const char *names[MONITOR_MAX] = {
|
||||||
|
|
||||||
"time/fps",
|
"time/fps",
|
||||||
"time/process",
|
"time/process",
|
||||||
"time/physics_process",
|
"time/physics_process",
|
||||||
@ -195,7 +194,6 @@ Performance::MonitorType Performance::get_monitor_type(Monitor p_monitor) const
|
|||||||
ERR_FAIL_INDEX_V(p_monitor, MONITOR_MAX, MONITOR_TYPE_QUANTITY);
|
ERR_FAIL_INDEX_V(p_monitor, MONITOR_MAX, MONITOR_TYPE_QUANTITY);
|
||||||
// ugly
|
// ugly
|
||||||
static const MonitorType types[MONITOR_MAX] = {
|
static const MonitorType types[MONITOR_MAX] = {
|
||||||
|
|
||||||
MONITOR_TYPE_QUANTITY,
|
MONITOR_TYPE_QUANTITY,
|
||||||
MONITOR_TYPE_TIME,
|
MONITOR_TYPE_TIME,
|
||||||
MONITOR_TYPE_TIME,
|
MONITOR_TYPE_TIME,
|
||||||
|
@ -63,7 +63,6 @@ class Performance : public Object {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
enum Monitor {
|
enum Monitor {
|
||||||
|
|
||||||
TIME_FPS,
|
TIME_FPS,
|
||||||
TIME_PROCESS,
|
TIME_PROCESS,
|
||||||
TIME_PHYSICS_PROCESS,
|
TIME_PHYSICS_PROCESS,
|
||||||
|
5
misc/dist/html/editor.html
vendored
5
misc/dist/html/editor.html
vendored
@ -258,7 +258,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function startEditor(zip) {
|
function startEditor(zip) {
|
||||||
|
|
||||||
const INDETERMINATE_STATUS_STEP_MS = 100;
|
const INDETERMINATE_STATUS_STEP_MS = 100;
|
||||||
const persistentPaths = ['/home/web_user/.config', '/home/web_user/projects'];
|
const persistentPaths = ['/home/web_user/.config', '/home/web_user/projects'];
|
||||||
|
|
||||||
@ -296,7 +295,6 @@
|
|||||||
adjustCanvasDimensions();
|
adjustCanvasDimensions();
|
||||||
|
|
||||||
setStatusMode = function setStatusMode(mode) {
|
setStatusMode = function setStatusMode(mode) {
|
||||||
|
|
||||||
if (statusMode === mode || !initializing)
|
if (statusMode === mode || !initializing)
|
||||||
return;
|
return;
|
||||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
||||||
@ -325,7 +323,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function animateStatusIndeterminate(ms) {
|
function animateStatusIndeterminate(ms) {
|
||||||
|
|
||||||
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
|
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
|
||||||
if (statusIndeterminate.children[i].style.borderTopColor == '') {
|
if (statusIndeterminate.children[i].style.borderTopColor == '') {
|
||||||
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
|
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
|
||||||
@ -336,7 +333,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
setStatusNotice = function setStatusNotice(text) {
|
setStatusNotice = function setStatusNotice(text) {
|
||||||
|
|
||||||
while (statusNotice.lastChild) {
|
while (statusNotice.lastChild) {
|
||||||
statusNotice.removeChild(statusNotice.lastChild);
|
statusNotice.removeChild(statusNotice.lastChild);
|
||||||
}
|
}
|
||||||
@ -348,7 +344,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
engine.setProgressFunc((current, total) => {
|
engine.setProgressFunc((current, total) => {
|
||||||
|
|
||||||
if (total > 0) {
|
if (total > 0) {
|
||||||
statusProgressInner.style.width = current/total * 100 + '%';
|
statusProgressInner.style.width = current/total * 100 + '%';
|
||||||
setStatusMode('progress');
|
setStatusMode('progress');
|
||||||
|
4
misc/dist/html/fixed-size.html
vendored
4
misc/dist/html/fixed-size.html
vendored
@ -229,7 +229,6 @@ $GODOT_HEAD_INCLUDE
|
|||||||
var engine = new Engine;
|
var engine = new Engine;
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
const EXECUTABLE_NAME = '$GODOT_BASENAME';
|
const EXECUTABLE_NAME = '$GODOT_BASENAME';
|
||||||
const MAIN_PACK = '$GODOT_BASENAME.pck';
|
const MAIN_PACK = '$GODOT_BASENAME.pck';
|
||||||
const EXTRA_ARGS = JSON.parse('$GODOT_ARGS');
|
const EXTRA_ARGS = JSON.parse('$GODOT_ARGS');
|
||||||
@ -247,7 +246,6 @@ $GODOT_HEAD_INCLUDE
|
|||||||
var indeterminiateStatusAnimationId = 0;
|
var indeterminiateStatusAnimationId = 0;
|
||||||
|
|
||||||
function setStatusMode(mode) {
|
function setStatusMode(mode) {
|
||||||
|
|
||||||
if (statusMode === mode || !initializing)
|
if (statusMode === mode || !initializing)
|
||||||
return;
|
return;
|
||||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
||||||
@ -288,7 +286,6 @@ $GODOT_HEAD_INCLUDE
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setStatusNotice(text) {
|
function setStatusNotice(text) {
|
||||||
|
|
||||||
while (statusNotice.lastChild) {
|
while (statusNotice.lastChild) {
|
||||||
statusNotice.removeChild(statusNotice.lastChild);
|
statusNotice.removeChild(statusNotice.lastChild);
|
||||||
}
|
}
|
||||||
@ -300,7 +297,6 @@ $GODOT_HEAD_INCLUDE
|
|||||||
};
|
};
|
||||||
|
|
||||||
engine.setProgressFunc((current, total) => {
|
engine.setProgressFunc((current, total) => {
|
||||||
|
|
||||||
if (total > 0) {
|
if (total > 0) {
|
||||||
statusProgressInner.style.width = current/total * 100 + '%';
|
statusProgressInner.style.width = current/total * 100 + '%';
|
||||||
setStatusMode('progress');
|
setStatusMode('progress');
|
||||||
|
5
misc/dist/html/full-size.html
vendored
5
misc/dist/html/full-size.html
vendored
@ -142,7 +142,6 @@ $GODOT_HEAD_INCLUDE
|
|||||||
var setStatusNotice;
|
var setStatusNotice;
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
const EXECUTABLE_NAME = '$GODOT_BASENAME';
|
const EXECUTABLE_NAME = '$GODOT_BASENAME';
|
||||||
const MAIN_PACK = '$GODOT_BASENAME.pck';
|
const MAIN_PACK = '$GODOT_BASENAME.pck';
|
||||||
const EXTRA_ARGS = JSON.parse('$GODOT_ARGS');
|
const EXTRA_ARGS = JSON.parse('$GODOT_ARGS');
|
||||||
@ -188,7 +187,6 @@ $GODOT_HEAD_INCLUDE
|
|||||||
}
|
}
|
||||||
|
|
||||||
setStatusMode = function setStatusMode(mode) {
|
setStatusMode = function setStatusMode(mode) {
|
||||||
|
|
||||||
if (statusMode === mode || !initializing)
|
if (statusMode === mode || !initializing)
|
||||||
return;
|
return;
|
||||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
||||||
@ -217,7 +215,6 @@ $GODOT_HEAD_INCLUDE
|
|||||||
};
|
};
|
||||||
|
|
||||||
function animateStatusIndeterminate(ms) {
|
function animateStatusIndeterminate(ms) {
|
||||||
|
|
||||||
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
|
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
|
||||||
if (statusIndeterminate.children[i].style.borderTopColor == '') {
|
if (statusIndeterminate.children[i].style.borderTopColor == '') {
|
||||||
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
|
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
|
||||||
@ -228,7 +225,6 @@ $GODOT_HEAD_INCLUDE
|
|||||||
}
|
}
|
||||||
|
|
||||||
setStatusNotice = function setStatusNotice(text) {
|
setStatusNotice = function setStatusNotice(text) {
|
||||||
|
|
||||||
while (statusNotice.lastChild) {
|
while (statusNotice.lastChild) {
|
||||||
statusNotice.removeChild(statusNotice.lastChild);
|
statusNotice.removeChild(statusNotice.lastChild);
|
||||||
}
|
}
|
||||||
@ -240,7 +236,6 @@ $GODOT_HEAD_INCLUDE
|
|||||||
};
|
};
|
||||||
|
|
||||||
engine.setProgressFunc((current, total) => {
|
engine.setProgressFunc((current, total) => {
|
||||||
|
|
||||||
if (total > 0) {
|
if (total > 0) {
|
||||||
statusProgressInner.style.width = current/total * 100 + '%';
|
statusProgressInner.style.width = current/total * 100 + '%';
|
||||||
setStatusMode('progress');
|
setStatusMode('progress');
|
||||||
|
@ -39,44 +39,36 @@
|
|||||||
#include <transcoder/basisu_transcoder.h>
|
#include <transcoder/basisu_transcoder.h>
|
||||||
|
|
||||||
void TextureBasisU::_bind_methods() {
|
void TextureBasisU::_bind_methods() {
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("set_basisu_data", "data"), &TextureBasisU::set_basisu_data);
|
ClassDB::bind_method(D_METHOD("set_basisu_data", "data"), &TextureBasisU::set_basisu_data);
|
||||||
ClassDB::bind_method(D_METHOD("get_basisu_data"), &TextureBasisU::get_data);
|
ClassDB::bind_method(D_METHOD("get_basisu_data"), &TextureBasisU::get_data);
|
||||||
ClassDB::bind_method(D_METHOD("import"), &TextureBasisU::import);
|
ClassDB::bind_method(D_METHOD("import"), &TextureBasisU::import);
|
||||||
|
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::PACKED_BYTE_ARRAY, "basisu_data"), "set_basisu_data", "get_basisu_data");
|
ADD_PROPERTY(PropertyInfo(Variant::PACKED_BYTE_ARRAY, "basisu_data"), "set_basisu_data", "get_basisu_data");
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int TextureBasisU::get_width() const {
|
int TextureBasisU::get_width() const {
|
||||||
|
|
||||||
return tex_size.x;
|
return tex_size.x;
|
||||||
};
|
};
|
||||||
|
|
||||||
int TextureBasisU::get_height() const {
|
int TextureBasisU::get_height() const {
|
||||||
|
|
||||||
return tex_size.y;
|
return tex_size.y;
|
||||||
};
|
};
|
||||||
|
|
||||||
RID TextureBasisU::get_rid() const {
|
RID TextureBasisU::get_rid() const {
|
||||||
|
|
||||||
return texture;
|
return texture;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
bool TextureBasisU::has_alpha() const {
|
bool TextureBasisU::has_alpha() const {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
void TextureBasisU::set_flags(uint32_t p_flags) {
|
void TextureBasisU::set_flags(uint32_t p_flags) {
|
||||||
|
|
||||||
flags = p_flags;
|
flags = p_flags;
|
||||||
RenderingServer::get_singleton()->texture_set_flags(texture, p_flags);
|
RenderingServer::get_singleton()->texture_set_flags(texture, p_flags);
|
||||||
};
|
};
|
||||||
|
|
||||||
uint32_t TextureBasisU::get_flags() const {
|
uint32_t TextureBasisU::get_flags() const {
|
||||||
|
|
||||||
return flags;
|
return flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -95,12 +87,10 @@ void TextureBasisU::set_basisu_data(const Vector<uint8_t>& p_data) {
|
|||||||
Image::Format imgfmt;
|
Image::Format imgfmt;
|
||||||
|
|
||||||
if (OS::get_singleton()->has_feature("s3tc")) {
|
if (OS::get_singleton()->has_feature("s3tc")) {
|
||||||
|
|
||||||
format = basist::cTFBC3; // get this from renderer
|
format = basist::cTFBC3; // get this from renderer
|
||||||
imgfmt = Image::FORMAT_DXT5;
|
imgfmt = Image::FORMAT_DXT5;
|
||||||
|
|
||||||
} else if (OS::get_singleton()->has_feature("etc2")) {
|
} else if (OS::get_singleton()->has_feature("etc2")) {
|
||||||
|
|
||||||
format = basist::cTFETC2;
|
format = basist::cTFETC2;
|
||||||
imgfmt = Image::FORMAT_ETC2_RGBA8;
|
imgfmt = Image::FORMAT_ETC2_RGBA8;
|
||||||
};
|
};
|
||||||
@ -126,7 +116,6 @@ void TextureBasisU::set_basisu_data(const Vector<uint8_t>& p_data) {
|
|||||||
int ofs = 0;
|
int ofs = 0;
|
||||||
tr.start_transcoding(ptr, size);
|
tr.start_transcoding(ptr, size);
|
||||||
for (int i=0; i<info.m_total_levels; i++) {
|
for (int i=0; i<info.m_total_levels; i++) {
|
||||||
|
|
||||||
basist::basisu_image_level_info level;
|
basist::basisu_image_level_info level;
|
||||||
tr.get_image_level_info(ptr, size, level, 0, i);
|
tr.get_image_level_info(ptr, size, level, 0, i);
|
||||||
|
|
||||||
@ -214,19 +203,16 @@ Error TextureBasisU::import(const Ref<Image>& p_img) {
|
|||||||
|
|
||||||
|
|
||||||
Vector<uint8_t> TextureBasisU::get_basisu_data() const {
|
Vector<uint8_t> TextureBasisU::get_basisu_data() const {
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|
||||||
TextureBasisU::TextureBasisU() {
|
TextureBasisU::TextureBasisU() {
|
||||||
|
|
||||||
flags = FLAGS_DEFAULT;
|
flags = FLAGS_DEFAULT;
|
||||||
texture = RenderingServer::get_singleton()->texture_create();
|
texture = RenderingServer::get_singleton()->texture_create();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
TextureBasisU::~TextureBasisU() {
|
TextureBasisU::~TextureBasisU() {
|
||||||
|
|
||||||
RenderingServer::get_singleton()->free(texture);
|
RenderingServer::get_singleton()->free(texture);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -41,7 +41,6 @@
|
|||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
class TextureBasisU : public Texture {
|
class TextureBasisU : public Texture {
|
||||||
|
|
||||||
GDCLASS(TextureBasisU, Texture);
|
GDCLASS(TextureBasisU, Texture);
|
||||||
RES_BASE_EXTENSION("butex");
|
RES_BASE_EXTENSION("butex");
|
||||||
|
|
||||||
@ -74,7 +73,6 @@ public:
|
|||||||
|
|
||||||
TextureBasisU();
|
TextureBasisU();
|
||||||
~TextureBasisU();
|
~TextureBasisU();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -373,7 +373,6 @@ RES ResourceFormatDDS::load(const String &p_path, const String &p_original_path,
|
|||||||
int colcount = size/4;
|
int colcount = size/4;
|
||||||
|
|
||||||
for(int i=0;i<colcount;i++) {
|
for(int i=0;i<colcount;i++) {
|
||||||
|
|
||||||
uint8_t r = wb[i*4+1];
|
uint8_t r = wb[i*4+1];
|
||||||
uint8_t g = wb[i*4+2];
|
uint8_t g = wb[i*4+2];
|
||||||
uint8_t b = wb[i*4+3];
|
uint8_t b = wb[i*4+3];
|
||||||
@ -392,7 +391,6 @@ RES ResourceFormatDDS::load(const String &p_path, const String &p_original_path,
|
|||||||
int colcount = size/3;
|
int colcount = size/3;
|
||||||
|
|
||||||
for(int i=0;i<colcount;i++) {
|
for(int i=0;i<colcount;i++) {
|
||||||
|
|
||||||
SWAP( wb[i*3+0],wb[i*3+2] );
|
SWAP( wb[i*3+0],wb[i*3+2] );
|
||||||
}*/
|
}*/
|
||||||
} break;
|
} break;
|
||||||
|
@ -106,7 +106,6 @@ static void _compress_etc(Image *p_img, float p_lossy_quality, bool force_etc1_f
|
|||||||
// If VRAM compression is using ETC, but image has alpha, convert to RGBA4444 or LA8
|
// If VRAM compression is using ETC, but image has alpha, convert to RGBA4444 or LA8
|
||||||
// This saves space while maintaining the alpha channel
|
// This saves space while maintaining the alpha channel
|
||||||
if (detected_channels == Image::USED_CHANNELS_RGBA) {
|
if (detected_channels == Image::USED_CHANNELS_RGBA) {
|
||||||
|
|
||||||
if (p_img->has_mipmaps()) {
|
if (p_img->has_mipmaps()) {
|
||||||
// Image doesn't support mipmaps with RGBA4444 textures
|
// Image doesn't support mipmaps with RGBA4444 textures
|
||||||
p_img->clear_mipmaps();
|
p_img->clear_mipmaps();
|
||||||
@ -114,7 +113,6 @@ static void _compress_etc(Image *p_img, float p_lossy_quality, bool force_etc1_f
|
|||||||
p_img->convert(Image::FORMAT_RGBA4444);
|
p_img->convert(Image::FORMAT_RGBA4444);
|
||||||
return;
|
return;
|
||||||
} else if (detected_channels == Image::USE_CHANNELS_LA) {
|
} else if (detected_channels == Image::USE_CHANNELS_LA) {
|
||||||
|
|
||||||
p_img->convert(Image::FORMAT_LA8);
|
p_img->convert(Image::FORMAT_LA8);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,6 @@ typedef enum {
|
|||||||
} godot_nativescript_property_hint;
|
} godot_nativescript_property_hint;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
||||||
GODOT_PROPERTY_USAGE_STORAGE = 1,
|
GODOT_PROPERTY_USAGE_STORAGE = 1,
|
||||||
GODOT_PROPERTY_USAGE_EDITOR = 2,
|
GODOT_PROPERTY_USAGE_EDITOR = 2,
|
||||||
GODOT_PROPERTY_USAGE_NETWORK = 4,
|
GODOT_PROPERTY_USAGE_NETWORK = 4,
|
||||||
|
@ -1974,7 +1974,6 @@ TEST_CASE("[GDNative String] humanize_size") {
|
|||||||
CHECK(u32scmp(godot_string_get_data(&s), U"4.97 GiB") == 0);
|
CHECK(u32scmp(godot_string_get_data(&s), U"4.97 GiB") == 0);
|
||||||
godot_string_destroy(&s);
|
godot_string_destroy(&s);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace TestGDNativeString
|
} // namespace TestGDNativeString
|
||||||
|
|
||||||
#endif // TEST_GDNATIVE_STRING_H
|
#endif // TEST_GDNATIVE_STRING_H
|
||||||
|
@ -1781,7 +1781,6 @@ static String marked_documentation(const String &p_bbcode) {
|
|||||||
}
|
}
|
||||||
return markdown;
|
return markdown;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace lsp
|
} // namespace lsp
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -303,5 +303,4 @@ void test(TestType p_type) {
|
|||||||
ScriptServer::finish_languages();
|
ScriptServer::finish_languages();
|
||||||
memdelete(packed_data);
|
memdelete(packed_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace TestGDScript
|
} // namespace TestGDScript
|
||||||
|
@ -41,7 +41,6 @@ enum TestType {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void test(TestType p_type);
|
void test(TestType p_type);
|
||||||
|
|
||||||
} // namespace TestGDScript
|
} // namespace TestGDScript
|
||||||
|
|
||||||
#endif // TEST_GDSCRIPT_H
|
#endif // TEST_GDSCRIPT_H
|
||||||
|
@ -41,12 +41,10 @@ class GridMapEditor : public VBoxContainer {
|
|||||||
GDCLASS(GridMapEditor, VBoxContainer);
|
GDCLASS(GridMapEditor, VBoxContainer);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
||||||
GRID_CURSOR_SIZE = 50
|
GRID_CURSOR_SIZE = 50
|
||||||
};
|
};
|
||||||
|
|
||||||
enum InputAction {
|
enum InputAction {
|
||||||
|
|
||||||
INPUT_NONE,
|
INPUT_NONE,
|
||||||
INPUT_PAINT,
|
INPUT_PAINT,
|
||||||
INPUT_ERASE,
|
INPUT_ERASE,
|
||||||
@ -56,7 +54,6 @@ class GridMapEditor : public VBoxContainer {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum ClipMode {
|
enum ClipMode {
|
||||||
|
|
||||||
CLIP_DISABLED,
|
CLIP_DISABLED,
|
||||||
CLIP_ABOVE,
|
CLIP_ABOVE,
|
||||||
CLIP_BELOW
|
CLIP_BELOW
|
||||||
@ -158,7 +155,6 @@ class GridMapEditor : public VBoxContainer {
|
|||||||
int cursor_rot;
|
int cursor_rot;
|
||||||
|
|
||||||
enum Menu {
|
enum Menu {
|
||||||
|
|
||||||
MENU_OPTION_NEXT_LEVEL,
|
MENU_OPTION_NEXT_LEVEL,
|
||||||
MENU_OPTION_PREV_LEVEL,
|
MENU_OPTION_PREV_LEVEL,
|
||||||
MENU_OPTION_LOCK_VIEW,
|
MENU_OPTION_LOCK_VIEW,
|
||||||
|
@ -32,7 +32,6 @@ namespace {
|
|||||||
static const int config_compressed_size = %d;
|
static const int config_compressed_size = %d;
|
||||||
static const int config_uncompressed_size = %d;
|
static const int config_uncompressed_size = %d;
|
||||||
static const unsigned char config_compressed_data[] = { %s };
|
static const unsigned char config_compressed_data[] = { %s };
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
String get_godot_android_mono_config() {
|
String get_godot_android_mono_config() {
|
||||||
|
@ -246,5 +246,4 @@ PackedStringArray get_code_completion(CompletionKind p_kind, const String &p_scr
|
|||||||
|
|
||||||
return suggestions;
|
return suggestions;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace gdmono
|
} // namespace gdmono
|
||||||
|
@ -50,7 +50,6 @@ enum class CompletionKind {
|
|||||||
};
|
};
|
||||||
|
|
||||||
PackedStringArray get_code_completion(CompletionKind p_kind, const String &p_script_file);
|
PackedStringArray get_code_completion(CompletionKind p_kind, const String &p_script_file);
|
||||||
|
|
||||||
} // namespace gdmono
|
} // namespace gdmono
|
||||||
|
|
||||||
#endif // CODE_COMPLETION_H
|
#endif // CODE_COMPLETION_H
|
||||||
|
@ -141,5 +141,4 @@ Error get_exported_assembly_dependencies(const Dictionary &p_initial_assemblies,
|
|||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace GodotSharpExport
|
} // namespace GodotSharpExport
|
||||||
|
@ -43,7 +43,6 @@ Error get_assembly_dependencies(GDMonoAssembly *p_assembly, const Vector<String>
|
|||||||
|
|
||||||
Error get_exported_assembly_dependencies(const Dictionary &p_initial_assemblies,
|
Error get_exported_assembly_dependencies(const Dictionary &p_initial_assemblies,
|
||||||
const String &p_build_config, const String &p_custom_lib_dir, Dictionary &r_assembly_dependencies);
|
const String &p_build_config, const String &p_custom_lib_dir, Dictionary &r_assembly_dependencies);
|
||||||
|
|
||||||
} // namespace GodotSharpExport
|
} // namespace GodotSharpExport
|
||||||
|
|
||||||
#endif // GODOTSHARP_EXPORT_H
|
#endif // GODOTSHARP_EXPORT_H
|
||||||
|
@ -322,5 +322,4 @@ String get_data_mono_bin_dir() {
|
|||||||
return _GodotSharpDirs::get_singleton().data_mono_bin_dir;
|
return _GodotSharpDirs::get_singleton().data_mono_bin_dir;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace GodotSharpDirs
|
} // namespace GodotSharpDirs
|
||||||
|
@ -66,7 +66,6 @@ String get_data_mono_lib_dir();
|
|||||||
#ifdef WINDOWS_ENABLED
|
#ifdef WINDOWS_ENABLED
|
||||||
String get_data_mono_bin_dir();
|
String get_data_mono_bin_dir();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace GodotSharpDirs
|
} // namespace GodotSharpDirs
|
||||||
|
|
||||||
#endif // GODOTSHARP_DIRS_H
|
#endif // GODOTSHARP_DIRS_H
|
||||||
|
@ -42,7 +42,6 @@ enum class GCHandleType : char {
|
|||||||
STRONG_HANDLE,
|
STRONG_HANDLE,
|
||||||
WEAK_HANDLE
|
WEAK_HANDLE
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Manual release of the GC handle must be done when using this struct
|
// Manual release of the GC handle must be done when using this struct
|
||||||
|
@ -201,7 +201,6 @@ MonoDomain *gd_initialize_mono_runtime() {
|
|||||||
return mono_jit_init_version("GodotEngine.RootDomain", runtime_version);
|
return mono_jit_init_version("GodotEngine.RootDomain", runtime_version);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
void GDMono::add_mono_shared_libs_dir_to_path() {
|
void GDMono::add_mono_shared_libs_dir_to_path() {
|
||||||
|
@ -283,7 +283,6 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace gdmono
|
} // namespace gdmono
|
||||||
|
|
||||||
#define _GDMONO_SCOPE_DOMAIN_(m_mono_domain) \
|
#define _GDMONO_SCOPE_DOMAIN_(m_mono_domain) \
|
||||||
|
@ -316,5 +316,4 @@ void update_godot_api_cache() {
|
|||||||
|
|
||||||
cached_data.godot_api_cache_updated = true;
|
cached_data.godot_api_cache_updated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace GDMonoCache
|
} // namespace GDMonoCache
|
||||||
|
@ -181,7 +181,6 @@ inline void clear_corlib_cache() {
|
|||||||
inline void clear_godot_api_cache() {
|
inline void clear_godot_api_cache() {
|
||||||
cached_data.clear_godot_api_cache();
|
cached_data.clear_godot_api_cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace GDMonoCache
|
} // namespace GDMonoCache
|
||||||
|
|
||||||
#define CACHED_CLASS(m_class) (GDMonoCache::cached_data.class_##m_class)
|
#define CACHED_CLASS(m_class) (GDMonoCache::cached_data.class_##m_class)
|
||||||
|
@ -127,5 +127,4 @@ void unhandled_exception(MonoException *p_exc) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace GDMonoInternals
|
} // namespace GDMonoInternals
|
||||||
|
@ -46,7 +46,6 @@ void tie_managed_to_unmanaged(MonoObject *managed, Object *unmanaged);
|
|||||||
* Use GDMonoUtils::debug_unhandled_exception(MonoException *) instead.
|
* Use GDMonoUtils::debug_unhandled_exception(MonoException *) instead.
|
||||||
*/
|
*/
|
||||||
void unhandled_exception(MonoException *p_exc);
|
void unhandled_exception(MonoException *p_exc);
|
||||||
|
|
||||||
} // namespace GDMonoInternals
|
} // namespace GDMonoInternals
|
||||||
|
|
||||||
#endif // GD_MONO_INTERNALS_H
|
#endif // GD_MONO_INTERNALS_H
|
||||||
|
@ -1536,5 +1536,4 @@ M_SignalInfo signal_info_to_managed(const Signal &p_signal) {
|
|||||||
MonoObject *name_string_name_managed = GDMonoUtils::create_managed_from(p_signal.get_name());
|
MonoObject *name_string_name_managed = GDMonoUtils::create_managed_from(p_signal.get_name());
|
||||||
return { owner_managed, name_string_name_managed };
|
return { owner_managed, name_string_name_managed };
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace GDMonoMarshal
|
} // namespace GDMonoMarshal
|
||||||
|
@ -271,7 +271,6 @@ static_assert(MATCHES_Vector2 && MATCHES_Rect2 && MATCHES_Transform2D && MATCHES
|
|||||||
MATCHES_Plane && MATCHES_Vector2i && MATCHES_Rect2i && MATCHES_Vector3i);
|
MATCHES_Plane && MATCHES_Vector2i && MATCHES_Rect2i && MATCHES_Vector3i);
|
||||||
/* clang-format on */
|
/* clang-format on */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace InteropLayout
|
} // namespace InteropLayout
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
@ -517,7 +516,6 @@ DECL_TYPE_MARSHAL_TEMPLATES(Plane)
|
|||||||
|
|
||||||
#define MARSHALLED_IN(m_type, m_from_ptr) (GDMonoMarshal::marshalled_in_##m_type(m_from_ptr))
|
#define MARSHALLED_IN(m_type, m_from_ptr) (GDMonoMarshal::marshalled_in_##m_type(m_from_ptr))
|
||||||
#define MARSHALLED_OUT(m_type, m_from) (GDMonoMarshal::marshalled_out_##m_type(m_from))
|
#define MARSHALLED_OUT(m_type, m_from) (GDMonoMarshal::marshalled_out_##m_type(m_from))
|
||||||
|
|
||||||
} // namespace GDMonoMarshal
|
} // namespace GDMonoMarshal
|
||||||
|
|
||||||
#endif // GDMONOMARSHAL_H
|
#endif // GDMONOMARSHAL_H
|
||||||
|
@ -659,7 +659,6 @@ GDMonoClass *make_generic_dictionary_type(MonoReflectionType *p_key_reftype, Mon
|
|||||||
UNHANDLED_EXCEPTION(exc);
|
UNHANDLED_EXCEPTION(exc);
|
||||||
return GDMono::get_singleton()->get_class(mono_class_from_mono_type(mono_reflection_type_get_type(reftype)));
|
return GDMono::get_singleton()->get_class(mono_class_from_mono_type(mono_reflection_type_get_type(reftype)));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Marshal
|
} // namespace Marshal
|
||||||
|
|
||||||
ScopeThreadAttach::ScopeThreadAttach() {
|
ScopeThreadAttach::ScopeThreadAttach() {
|
||||||
@ -679,5 +678,4 @@ StringName get_native_godot_class_name(GDMonoClass *p_class) {
|
|||||||
StringName *ptr = GDMonoMarshal::unbox<StringName *>(CACHED_FIELD(StringName, ptr)->get_value(native_name_obj));
|
StringName *ptr = GDMonoMarshal::unbox<StringName *>(CACHED_FIELD(StringName, ptr)->get_value(native_name_obj));
|
||||||
return ptr ? *ptr : StringName();
|
return ptr ? *ptr : StringName();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace GDMonoUtils
|
} // namespace GDMonoUtils
|
||||||
|
@ -64,7 +64,6 @@ void dictionary_get_key_value_types(MonoReflectionType *p_dict_reftype, MonoRefl
|
|||||||
|
|
||||||
GDMonoClass *make_generic_array_type(MonoReflectionType *p_elem_reftype);
|
GDMonoClass *make_generic_array_type(MonoReflectionType *p_elem_reftype);
|
||||||
GDMonoClass *make_generic_dictionary_type(MonoReflectionType *p_key_reftype, MonoReflectionType *p_value_reftype);
|
GDMonoClass *make_generic_dictionary_type(MonoReflectionType *p_key_reftype, MonoReflectionType *p_value_reftype);
|
||||||
|
|
||||||
} // namespace Marshal
|
} // namespace Marshal
|
||||||
|
|
||||||
_FORCE_INLINE_ void hash_combine(uint32_t &p_hash, const uint32_t &p_with_hash) {
|
_FORCE_INLINE_ void hash_combine(uint32_t &p_hash, const uint32_t &p_with_hash) {
|
||||||
@ -156,7 +155,6 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
StringName get_native_godot_class_name(GDMonoClass *p_class);
|
StringName get_native_godot_class_name(GDMonoClass *p_class);
|
||||||
|
|
||||||
} // namespace GDMonoUtils
|
} // namespace GDMonoUtils
|
||||||
|
|
||||||
#define NATIVE_GDMONOCLASS_NAME(m_class) (GDMonoUtils::get_native_godot_class_name(m_class))
|
#define NATIVE_GDMONOCLASS_NAME(m_class) (GDMonoUtils::get_native_godot_class_name(m_class))
|
||||||
|
@ -387,7 +387,6 @@ void cleanup() {
|
|||||||
certStore = nullptr;
|
certStore = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace support
|
} // namespace support
|
||||||
} // namespace android
|
} // namespace android
|
||||||
} // namespace gdmono
|
} // namespace gdmono
|
||||||
|
@ -45,7 +45,6 @@ void initialize();
|
|||||||
void cleanup();
|
void cleanup();
|
||||||
|
|
||||||
void register_internal_calls();
|
void register_internal_calls();
|
||||||
|
|
||||||
} // namespace support
|
} // namespace support
|
||||||
} // namespace android
|
} // namespace android
|
||||||
} // namespace gdmono
|
} // namespace gdmono
|
||||||
|
@ -41,7 +41,6 @@ namespace support {
|
|||||||
|
|
||||||
void initialize();
|
void initialize();
|
||||||
void cleanup();
|
void cleanup();
|
||||||
|
|
||||||
} // namespace support
|
} // namespace support
|
||||||
} // namespace ios
|
} // namespace ios
|
||||||
} // namespace gdmono
|
} // namespace gdmono
|
||||||
|
@ -72,7 +72,6 @@ void initialize() {
|
|||||||
|
|
||||||
void cleanup() {
|
void cleanup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace support
|
} // namespace support
|
||||||
} // namespace ios
|
} // namespace ios
|
||||||
} // namespace gdmono
|
} // namespace gdmono
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user