mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #38812 from aaronfranke/brace-no-empty-line
Remove all empty lines from the start of blocks defined with braces
This commit is contained in:
commit
99d0df2e33
@ -83,7 +83,6 @@ protected:
|
||||
|
||||
public:
|
||||
enum SaverFlags {
|
||||
|
||||
FLAG_RELATIVE_PATHS = 1,
|
||||
FLAG_BUNDLE_RESOURCES = 2,
|
||||
FLAG_CHANGE_PATH = 4,
|
||||
@ -361,7 +360,6 @@ protected:
|
||||
|
||||
public:
|
||||
enum ModeFlags {
|
||||
|
||||
READ = 1,
|
||||
WRITE = 2,
|
||||
READ_WRITE = 3,
|
||||
@ -561,7 +559,6 @@ protected:
|
||||
|
||||
public:
|
||||
enum Priority {
|
||||
|
||||
PRIORITY_LOW,
|
||||
PRIORITY_NORMAL,
|
||||
PRIORITY_HIGH,
|
||||
|
@ -60,7 +60,6 @@ enum ButtonList {
|
||||
};
|
||||
|
||||
enum JoyButtonList {
|
||||
|
||||
JOY_INVALID_BUTTON = -1,
|
||||
|
||||
// SDL Buttons
|
||||
@ -112,7 +111,6 @@ enum JoyButtonList {
|
||||
};
|
||||
|
||||
enum JoyAxisList {
|
||||
|
||||
JOY_INVALID_AXIS = -1,
|
||||
|
||||
// SDL Axes
|
||||
|
@ -102,7 +102,6 @@ static voidpf godot_alloc(voidpf opaque, uInt items, uInt size) {
|
||||
static void godot_free(voidpf opaque, voidpf address) {
|
||||
memfree(address);
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
void ZipArchive::close_handle(unzFile p_file) const {
|
||||
|
@ -41,7 +41,6 @@ class HTTPClient : public Reference {
|
||||
|
||||
public:
|
||||
enum ResponseCode {
|
||||
|
||||
// 1xx informational
|
||||
RESPONSE_CONTINUE = 100,
|
||||
RESPONSE_SWITCHING_PROTOCOLS = 101,
|
||||
@ -116,7 +115,6 @@ public:
|
||||
};
|
||||
|
||||
enum Method {
|
||||
|
||||
METHOD_GET,
|
||||
METHOD_HEAD,
|
||||
METHOD_POST,
|
||||
@ -131,7 +129,6 @@ public:
|
||||
};
|
||||
|
||||
enum Status {
|
||||
|
||||
STATUS_DISCONNECTED,
|
||||
STATUS_RESOLVING, // Resolving hostname (if passed a hostname)
|
||||
STATUS_CANT_RESOLVE,
|
||||
@ -150,7 +147,6 @@ private:
|
||||
static const int HOST_MIN_LEN = 4;
|
||||
|
||||
enum Port {
|
||||
|
||||
PORT_HTTP = 80,
|
||||
PORT_HTTPS = 443,
|
||||
|
||||
|
@ -80,7 +80,6 @@ const char *Image::format_names[Image::FORMAT_MAX] = {
|
||||
"ETC2_RGB8A1",
|
||||
"ETC2_RA_AS_RG",
|
||||
"FORMAT_DXT5_RA_AS_RG",
|
||||
|
||||
};
|
||||
|
||||
SavePNGFunc Image::save_png_func = nullptr;
|
||||
|
@ -66,7 +66,6 @@ public:
|
||||
};
|
||||
|
||||
enum Format {
|
||||
|
||||
FORMAT_L8, //luminance
|
||||
FORMAT_LA8, //luminance-alpha
|
||||
FORMAT_R8,
|
||||
@ -111,7 +110,6 @@ public:
|
||||
|
||||
static const char *format_names[FORMAT_MAX];
|
||||
enum Interpolation {
|
||||
|
||||
INTERPOLATE_NEAREST,
|
||||
INTERPOLATE_BILINEAR,
|
||||
INTERPOLATE_CUBIC,
|
||||
|
@ -42,7 +42,6 @@ class IP : public Object {
|
||||
|
||||
public:
|
||||
enum ResolverStatus {
|
||||
|
||||
RESOLVER_STATUS_NONE,
|
||||
RESOLVER_STATUS_WAITING,
|
||||
RESOLVER_STATUS_DONE,
|
||||
@ -50,7 +49,6 @@ public:
|
||||
};
|
||||
|
||||
enum Type {
|
||||
|
||||
TYPE_NONE = 0,
|
||||
TYPE_IPV4 = 1,
|
||||
TYPE_IPV6 = 2,
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include "ip_address.h"
|
||||
/*
|
||||
IP_Address::operator Variant() const {
|
||||
|
||||
return operator String();
|
||||
}*/
|
||||
|
||||
|
@ -49,7 +49,6 @@ class JSON {
|
||||
};
|
||||
|
||||
enum Expecting {
|
||||
|
||||
EXPECT_OBJECT,
|
||||
EXPECT_OBJECT_KEY,
|
||||
EXPECT_COLON,
|
||||
|
@ -102,7 +102,6 @@ public:
|
||||
};
|
||||
|
||||
enum RPCMode {
|
||||
|
||||
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_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)
|
||||
|
||||
enum {
|
||||
|
||||
//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_BOOL = 2,
|
||||
@ -90,7 +89,6 @@ enum {
|
||||
FORMAT_VERSION = 3,
|
||||
FORMAT_VERSION_CAN_RENAME_DEPS = 1,
|
||||
FORMAT_VERSION_NO_NODEPATH_PROPERTY = 3,
|
||||
|
||||
};
|
||||
|
||||
void ResourceLoaderBinary::_advance_padding(uint32_t p_len) {
|
||||
|
@ -63,7 +63,6 @@ class ResourceSaver {
|
||||
|
||||
public:
|
||||
enum SaverFlags {
|
||||
|
||||
FLAG_RELATIVE_PATHS = 1,
|
||||
FLAG_BUNDLE_RESOURCES = 2,
|
||||
FLAG_CHANGE_PATH = 4,
|
||||
|
@ -42,7 +42,6 @@ class StreamPeerTCP : public StreamPeer {
|
||||
|
||||
public:
|
||||
enum Status {
|
||||
|
||||
STATUS_NONE,
|
||||
STATUS_CONNECTING,
|
||||
STATUS_CONNECTED,
|
||||
|
@ -241,7 +241,6 @@ Vector<Vector<Face3>> Geometry3D::separate_objects(Vector<Face3> p_array) {
|
||||
/*** GEOMETRY WRAPPER ***/
|
||||
|
||||
enum _CellFlags {
|
||||
|
||||
_CELL_SOLID = 1,
|
||||
_CELL_EXTERIOR = 2,
|
||||
_CELL_STEP_MASK = 0x1C,
|
||||
@ -262,7 +261,6 @@ enum _CellFlags {
|
||||
_CELL_PREV_Z_POS = 5 << 5,
|
||||
_CELL_PREV_Z_NEG = 6 << 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) {
|
||||
|
@ -66,27 +66,23 @@ enum ClockDirection {
|
||||
};
|
||||
|
||||
enum Orientation {
|
||||
|
||||
HORIZONTAL,
|
||||
VERTICAL
|
||||
};
|
||||
|
||||
enum HAlign {
|
||||
|
||||
HALIGN_LEFT,
|
||||
HALIGN_CENTER,
|
||||
HALIGN_RIGHT
|
||||
};
|
||||
|
||||
enum VAlign {
|
||||
|
||||
VALIGN_TOP,
|
||||
VALIGN_CENTER,
|
||||
VALIGN_BOTTOM
|
||||
};
|
||||
|
||||
enum Margin {
|
||||
|
||||
MARGIN_LEFT,
|
||||
MARGIN_TOP,
|
||||
MARGIN_RIGHT,
|
||||
@ -94,7 +90,6 @@ enum Margin {
|
||||
};
|
||||
|
||||
enum Corner {
|
||||
|
||||
CORNER_TOP_LEFT,
|
||||
CORNER_TOP_RIGHT,
|
||||
CORNER_BOTTOM_RIGHT,
|
||||
|
@ -47,9 +47,7 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
||||
/* clang-format off */
|
||||
|
||||
switch (p_source.get_type()) {
|
||||
|
||||
case Variant::VECTOR2: {
|
||||
|
||||
SETUP_TYPE(Vector2)
|
||||
|
||||
/**/ TRY_TRANSFER_FIELD("x", x)
|
||||
@ -59,7 +57,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
||||
}
|
||||
|
||||
case Variant::RECT2: {
|
||||
|
||||
SETUP_TYPE(Rect2)
|
||||
|
||||
/**/ 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: {
|
||||
|
||||
SETUP_TYPE(Vector3)
|
||||
|
||||
/**/ TRY_TRANSFER_FIELD("x", x)
|
||||
@ -82,7 +78,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
||||
}
|
||||
|
||||
case Variant::PLANE: {
|
||||
|
||||
SETUP_TYPE(Plane)
|
||||
|
||||
/**/ 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: {
|
||||
|
||||
SETUP_TYPE(Quat)
|
||||
|
||||
/**/ TRY_TRANSFER_FIELD("x", x)
|
||||
@ -106,7 +100,6 @@ Variant fieldwise_assign(const Variant &p_target, const Variant &p_source, const
|
||||
}
|
||||
|
||||
case Variant::AABB: {
|
||||
|
||||
SETUP_TYPE(AABB)
|
||||
|
||||
/**/ 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: {
|
||||
|
||||
SETUP_TYPE(Transform2D)
|
||||
|
||||
/**/ 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: {
|
||||
|
||||
SETUP_TYPE(Basis)
|
||||
|
||||
/**/ 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: {
|
||||
|
||||
SETUP_TYPE(Transform)
|
||||
|
||||
/**/ 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*0.5 < element_size) {
|
||||
|
||||
/* at smallest possible size for the element */
|
||||
typename Element::OctantOwner owner;
|
||||
owner.octant = p_octant;
|
||||
|
@ -114,7 +114,6 @@ Callable create_custom_callable_function_pointer(T *p_instance,
|
||||
const char *p_func_text,
|
||||
#endif
|
||||
void (T::*p_method)(P...)) {
|
||||
|
||||
typedef CallableCustomMethodPointer<T, P...> CCMP; // Messes with memnew otherwise.
|
||||
CCMP *ccmp = memnew(CCMP(p_instance, p_method));
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
@ -170,7 +169,6 @@ Callable create_custom_callable_function_pointer(T *p_instance,
|
||||
const char *p_func_text,
|
||||
#endif
|
||||
R (T::*p_method)(P...)) {
|
||||
|
||||
typedef CallableCustomMethodPointerRet<T, R, P...> CCMP; // Messes with memnew otherwise.
|
||||
CCMP *ccmp = memnew(CCMP(p_instance, p_method));
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
@ -226,7 +224,6 @@ Callable create_custom_callable_function_pointer(T *p_instance,
|
||||
const char *p_func_text,
|
||||
#endif
|
||||
R (T::*p_method)(P...) const) {
|
||||
|
||||
typedef CallableCustomMethodPointerRetC<T, R, P...> CCMP; // Messes with memnew otherwise.
|
||||
CCMP *ccmp = memnew(CCMP(p_instance, p_method));
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
|
@ -34,7 +34,6 @@
|
||||
#include "core/variant/binder_common.h"
|
||||
|
||||
enum MethodFlags {
|
||||
|
||||
METHOD_FLAG_NORMAL = 1,
|
||||
METHOD_FLAG_EDITOR = 2,
|
||||
METHOD_FLAG_NOSCRIPT = 4,
|
||||
|
@ -98,7 +98,6 @@ enum PropertyHint {
|
||||
};
|
||||
|
||||
enum PropertyUsageFlags {
|
||||
|
||||
PROPERTY_USAGE_STORAGE = 1,
|
||||
PROPERTY_USAGE_EDITOR = 2,
|
||||
PROPERTY_USAGE_NETWORK = 4,
|
||||
@ -406,7 +405,6 @@ class ScriptInstance;
|
||||
class Object {
|
||||
public:
|
||||
enum ConnectFlags {
|
||||
|
||||
CONNECT_DEFERRED = 1,
|
||||
CONNECT_PERSIST = 2, // hint for scene to save this connection
|
||||
CONNECT_ONESHOT = 4,
|
||||
|
@ -57,7 +57,6 @@ struct SortNetData {
|
||||
|
||||
class ScriptServer {
|
||||
enum {
|
||||
|
||||
MAX_LANGUAGES = 16
|
||||
};
|
||||
|
||||
|
@ -81,7 +81,6 @@ public:
|
||||
virtual void _set_access_type(AccessType p_access);
|
||||
|
||||
enum ModeFlags {
|
||||
|
||||
READ = 1,
|
||||
WRITE = 2,
|
||||
READ_WRITE = 3,
|
||||
|
@ -38,7 +38,6 @@ struct _KeyCodeText {
|
||||
};
|
||||
|
||||
static const _KeyCodeText _keycodes[] = {
|
||||
|
||||
/* clang-format off */
|
||||
{KEY_ESCAPE ,"Escape"},
|
||||
{KEY_TAB ,"Tab"},
|
||||
|
@ -294,11 +294,9 @@ enum KeyList {
|
||||
|
||||
KEY_DIVISION = 0x00F7,
|
||||
KEY_YDIAERESIS = 0x00FF,
|
||||
|
||||
};
|
||||
|
||||
enum KeyModifierMask {
|
||||
|
||||
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_MASK_SHIFT = (1 << 25),
|
||||
@ -314,7 +312,6 @@ enum KeyModifierMask {
|
||||
KEY_MASK_KPAD = (1 << 29),
|
||||
KEY_MASK_GROUP_SWITCH = (1 << 30)
|
||||
// bit 31 can't be used because variant uses regular 32 bits int as datatype
|
||||
|
||||
};
|
||||
|
||||
String keycode_get_string(uint32_t p_code);
|
||||
|
@ -77,7 +77,6 @@ public:
|
||||
typedef bool (*HasServerFeatureCallback)(const String &p_feature);
|
||||
|
||||
enum RenderThreadMode {
|
||||
|
||||
RENDER_THREAD_UNSAFE,
|
||||
RENDER_THREAD_SAFE,
|
||||
RENDER_SEPARATE_THREAD
|
||||
|
@ -43,7 +43,6 @@
|
||||
*/
|
||||
|
||||
enum {
|
||||
|
||||
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 {
|
||||
public:
|
||||
enum Priority {
|
||||
|
||||
PRIORITY_LOW,
|
||||
PRIORITY_NORMAL,
|
||||
PRIORITY_HIGH
|
||||
|
@ -44,7 +44,6 @@ struct StaticCString {
|
||||
|
||||
class StringName {
|
||||
enum {
|
||||
|
||||
STRING_TABLE_BITS = 12,
|
||||
STRING_TABLE_LEN = 1 << STRING_TABLE_BITS,
|
||||
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++) {
|
||||
|
||||
char chr[2]={i,0};
|
||||
str=str.replace(chr,"&#"+String::num(i)+";");
|
||||
}*/
|
||||
|
@ -198,7 +198,6 @@ class String {
|
||||
|
||||
public:
|
||||
enum {
|
||||
|
||||
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>
|
||||
class SortArray {
|
||||
enum {
|
||||
|
||||
INTROSORT_THRESHOLD = 16
|
||||
};
|
||||
|
||||
|
@ -426,7 +426,6 @@ public:
|
||||
|
||||
// If this changes the table in variant_op must be updated
|
||||
enum Operator {
|
||||
|
||||
//comparison
|
||||
OP_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);
|
||||
|
||||
//else if (type==Variant::METHOD) {
|
||||
|
||||
} else {
|
||||
r_error.error = Callable::CallError::CALL_OK;
|
||||
|
||||
|
@ -2159,7 +2159,6 @@ static const char *_op_names[Variant::OP_MAX] = {
|
||||
"xor",
|
||||
"not",
|
||||
"in"
|
||||
|
||||
};
|
||||
|
||||
String Variant::get_operator_name(Operator p_op) {
|
||||
|
@ -100,7 +100,6 @@ public:
|
||||
};
|
||||
|
||||
enum Expecting {
|
||||
|
||||
EXPECT_OBJECT,
|
||||
EXPECT_OBJECT_KEY,
|
||||
EXPECT_COLON,
|
||||
|
@ -262,7 +262,6 @@ public:
|
||||
|
||||
#if 0
|
||||
RID texture_create() override {
|
||||
|
||||
DummyTexture *texture = memnew(DummyTexture);
|
||||
ERR_FAIL_COND_V(!texture, RID());
|
||||
return texture_owner.make_rid(texture);
|
||||
@ -709,14 +708,11 @@ public:
|
||||
/* LIGHTMAP CAPTURE */
|
||||
#if 0
|
||||
struct Instantiable {
|
||||
|
||||
SelfList<RasterizerScene::InstanceBase>::List instance_list;
|
||||
|
||||
_FORCE_INLINE_ void instance_change_notify(bool p_aabb = true, bool p_materials = true) override {
|
||||
|
||||
SelfList<RasterizerScene::InstanceBase> *instances = instance_list.first();
|
||||
while (instances) override {
|
||||
|
||||
//instances->self()->base_changed(p_aabb, p_materials);
|
||||
instances = instances->next();
|
||||
}
|
||||
@ -725,7 +721,6 @@ public:
|
||||
_FORCE_INLINE_ void instance_remove_deps() override {
|
||||
SelfList<RasterizerScene::InstanceBase> *instances = instance_list.first();
|
||||
while (instances) override {
|
||||
|
||||
SelfList<RasterizerScene::InstanceBase> *next = instances->next();
|
||||
//instances->self()->base_removed();
|
||||
instances = next;
|
||||
@ -738,7 +733,6 @@ public:
|
||||
};
|
||||
|
||||
struct LightmapCapture : public Instantiable {
|
||||
|
||||
Vector<LightmapCaptureOctree> octree;
|
||||
AABB bounds;
|
||||
Transform cell_xform;
|
||||
|
@ -203,5 +203,4 @@ Error image_to_png(const Ref<Image> &p_image, Vector<uint8_t> &p_buffer) {
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
} // 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.
|
||||
// Contents of p_buffer is unspecified if error returned.
|
||||
Error image_to_png(const Ref<Image> &p_image, Vector<uint8_t> &p_buffer);
|
||||
|
||||
} // namespace PNGDriverCommon
|
||||
|
||||
#endif
|
||||
|
@ -3733,13 +3733,11 @@ String RenderingDeviceVulkan::_shader_uniform_debug(RID p_shader, int p_set) {
|
||||
}
|
||||
#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) {
|
||||
|
||||
VkDescriptorSetLayoutBinding layout_binding;
|
||||
UniformInfo info;
|
||||
|
||||
switch (reflection.getType()->getBasicType()) {
|
||||
case glslang::EbtSampler: {
|
||||
|
||||
//print_line("DEBUG: IsSampler");
|
||||
if (reflection.getType()->getSampler().dim == glslang::EsdBuffer) {
|
||||
//texture buffers
|
||||
@ -3837,13 +3835,10 @@ bool RenderingDeviceVulkan::_uniform_add_binding(Vector<Vector<VkDescriptorSetLa
|
||||
|
||||
} break;
|
||||
/*case glslang::EbtReference: {
|
||||
|
||||
} break;*/
|
||||
/*case glslang::EbtAtomicUint: {
|
||||
|
||||
} break;*/
|
||||
default: {
|
||||
|
||||
if (reflection.getType()->getQualifier().hasOffset() || reflection.name.find(".") != std::string::npos) {
|
||||
//member of uniform block?
|
||||
return true;
|
||||
@ -6837,7 +6832,6 @@ void RenderingDeviceVulkan::full_barrier() {
|
||||
|
||||
#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) {
|
||||
|
||||
VkCommandBuffer frame_cmdbuf = frames[frame].frame_buffer;
|
||||
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();
|
||||
{
|
||||
|
||||
VkCommandBuffer *command_buffers = (VkCommandBuffer *)alloca(sizeof(VkCommandBuffer) * p_draw_list_count);
|
||||
uint32_t command_buffer_count = 0;
|
||||
|
||||
@ -6890,7 +6883,6 @@ void RenderingDeviceVulkan::draw_list_render_secondary_to_framebuffer(ID p_frame
|
||||
}
|
||||
|
||||
vkCmdEndRenderPass(frame_cmdbuf);
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -1010,7 +1010,6 @@ Error VulkanContext::_update_swap_chain(Window *window) {
|
||||
|
||||
{
|
||||
const VkAttachmentDescription attachment = {
|
||||
|
||||
/*flags*/ 0,
|
||||
/*format*/ format,
|
||||
/*samples*/ VK_SAMPLE_COUNT_1_BIT,
|
||||
|
@ -476,7 +476,6 @@ void EditorVisualProfiler::_graph_tex_draw() {
|
||||
|
||||
/*
|
||||
if (hover_metric != -1 && frame_metrics[hover_metric].valid) {
|
||||
|
||||
int max_frames = frame_metrics.size();
|
||||
int frame = frame_metrics[hover_metric].frame_number - (frame_metrics[last_metric].frame_number - max_frames + 1);
|
||||
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;
|
||||
|
||||
for (int j = 0; j < categories.size(); j++) {
|
||||
|
||||
const EditorFrameProfiler::Metric::Category &c = categories[j];
|
||||
signatures.push_back(c.signature);
|
||||
|
||||
@ -688,7 +686,6 @@ Vector<Vector<String>> EditorVisualProfiler::get_data_as_csv() const {
|
||||
int index = last_metric;
|
||||
|
||||
for (int i = 0; i < frame_metrics.size(); i++) {
|
||||
|
||||
++index;
|
||||
|
||||
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;
|
||||
|
||||
for (int j = 0; j < frame_cat.size(); j++) {
|
||||
|
||||
const EditorFrameProfiler::Metric::Category &c = frame_cat[j];
|
||||
values.write[it++] = String::num_real(c.total_time);
|
||||
|
||||
|
@ -40,7 +40,6 @@
|
||||
|
||||
class EditorHistory {
|
||||
enum {
|
||||
|
||||
HISTORY_MAX = 64
|
||||
};
|
||||
|
||||
|
@ -91,7 +91,6 @@ class EditorHelp : public VBoxContainer {
|
||||
GDCLASS(EditorHelp, VBoxContainer);
|
||||
|
||||
enum Page {
|
||||
|
||||
PAGE_CLASS_LIST,
|
||||
PAGE_CLASS_DESC,
|
||||
PAGE_CLASS_PREV,
|
||||
|
@ -595,7 +595,6 @@ class EditorPropertyResource : public EditorProperty {
|
||||
GDCLASS(EditorPropertyResource, EditorProperty);
|
||||
|
||||
enum MenuOption {
|
||||
|
||||
OBJ_MENU_LOAD = 0,
|
||||
OBJ_MENU_EDIT = 1,
|
||||
OBJ_MENU_CLEAR = 2,
|
||||
|
@ -36,7 +36,6 @@
|
||||
class EditorRun {
|
||||
public:
|
||||
enum Status {
|
||||
|
||||
STATUS_PLAY,
|
||||
STATUS_PAUSED,
|
||||
STATUS_STOP
|
||||
|
@ -313,7 +313,6 @@ public:
|
||||
|
||||
struct Node {
|
||||
enum Type {
|
||||
|
||||
TYPE_NODE,
|
||||
TYPE_JOINT,
|
||||
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];
|
||||
|
||||
for (int j=0;j<4;j++) {
|
||||
|
||||
float v[3];
|
||||
v[0]=1.0;
|
||||
v[1]=1-2*((j>>1)&1);
|
||||
v[2]=v[1]*(1-2*(j&1));
|
||||
|
||||
for (int k=0;k<3;k++) {
|
||||
|
||||
if (i<3)
|
||||
face_points[j][(i+k)%3]=v[k]*(i>=3?-1:1);
|
||||
else
|
||||
|
@ -3389,7 +3389,6 @@ void CanvasItemEditor::_draw_selection() {
|
||||
|
||||
if (canvas_item->_edit_use_rect()) {
|
||||
Vector2 pre_drag_endpoints[4] = {
|
||||
|
||||
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 + se->pre_drag_rect.size),
|
||||
|
@ -44,7 +44,6 @@ class CollisionPolygon3DEditor : public HBoxContainer {
|
||||
|
||||
UndoRedo *undo_redo;
|
||||
enum Mode {
|
||||
|
||||
MODE_CREATE,
|
||||
MODE_EDIT,
|
||||
|
||||
|
@ -38,7 +38,6 @@ class CPUParticles3DEditor : public GPUParticles3DEditorBase {
|
||||
GDCLASS(CPUParticles3DEditor, GPUParticles3DEditorBase);
|
||||
|
||||
enum Menu {
|
||||
|
||||
MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_NODE,
|
||||
MENU_OPTION_CLEAR_EMISSION_VOLUME,
|
||||
MENU_OPTION_RESTART
|
||||
|
@ -42,7 +42,6 @@ class GPUParticles2DEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(GPUParticles2DEditorPlugin, EditorPlugin);
|
||||
|
||||
enum {
|
||||
|
||||
MENU_GENERATE_VISIBILITY_RECT,
|
||||
MENU_LOAD_EMISSION_MASK,
|
||||
MENU_CLEAR_EMISSION_MASK,
|
||||
|
@ -71,7 +71,6 @@ class GPUParticles3DEditor : public GPUParticles3DEditorBase {
|
||||
GPUParticles3D *node;
|
||||
|
||||
enum Menu {
|
||||
|
||||
MENU_OPTION_GENERATE_AABB,
|
||||
MENU_OPTION_CREATE_EMISSION_VOLUME_FROM_NODE,
|
||||
MENU_OPTION_CLEAR_EMISSION_VOLUME,
|
||||
|
@ -49,7 +49,6 @@ protected:
|
||||
|
||||
public:
|
||||
enum Flags {
|
||||
|
||||
FLAG_ICON = 1,
|
||||
FLAG_CHECKABLE = 2,
|
||||
FLAG_ID = 4,
|
||||
|
@ -40,7 +40,6 @@ class MeshInstance3DEditor : public Control {
|
||||
GDCLASS(MeshInstance3DEditor, Control);
|
||||
|
||||
enum Menu {
|
||||
|
||||
MENU_OPTION_CREATE_STATIC_TRIMESH_BODY,
|
||||
MENU_OPTION_CREATE_TRIMESH_COLLISION_SHAPE,
|
||||
MENU_OPTION_CREATE_SINGLE_CONVEX_COLLISION_SHAPE,
|
||||
|
@ -46,7 +46,6 @@ class MeshLibraryEditor : public Control {
|
||||
int to_erase;
|
||||
|
||||
enum {
|
||||
|
||||
MENU_OPTION_ADD_ITEM,
|
||||
MENU_OPTION_REMOVE_ITEM,
|
||||
MENU_OPTION_UPDATE_FROM_SCENE,
|
||||
|
@ -63,7 +63,6 @@ class MultiMeshEditor : public Control {
|
||||
SpinBox *populate_amount;
|
||||
|
||||
enum Menu {
|
||||
|
||||
MENU_OPTION_POPULATE
|
||||
};
|
||||
|
||||
|
@ -180,7 +180,6 @@ class Node3DEditorViewport : public Control {
|
||||
friend class Node3DEditor;
|
||||
friend class ViewportRotationControl;
|
||||
enum {
|
||||
|
||||
VIEW_TOP,
|
||||
VIEW_BOTTOM,
|
||||
VIEW_LEFT,
|
||||
@ -554,7 +553,6 @@ public:
|
||||
static const unsigned int VIEWPORTS_COUNT = 4;
|
||||
|
||||
enum ToolMode {
|
||||
|
||||
TOOL_MODE_SELECT,
|
||||
TOOL_MODE_MOVE,
|
||||
TOOL_MODE_ROTATE,
|
||||
@ -568,7 +566,6 @@ public:
|
||||
};
|
||||
|
||||
enum ToolOptions {
|
||||
|
||||
TOOL_OPT_LOCAL_COORDS,
|
||||
TOOL_OPT_USE_SNAP,
|
||||
TOOL_OPT_OVERRIDE_CAMERA,
|
||||
@ -634,7 +631,6 @@ private:
|
||||
} gizmo;
|
||||
|
||||
enum MenuOption {
|
||||
|
||||
MENU_TOOL_SELECT,
|
||||
MENU_TOOL_MOVE,
|
||||
MENU_TOOL_ROTATE,
|
||||
|
@ -76,7 +76,6 @@ class Path2DEditor : public HBoxContainer {
|
||||
};
|
||||
|
||||
enum Action {
|
||||
|
||||
ACTION_NONE,
|
||||
ACTION_MOVING_POINT,
|
||||
ACTION_MOVING_IN,
|
||||
|
@ -372,7 +372,6 @@ void ShaderEditor::_bind_methods() {
|
||||
void ShaderEditor::ensure_select_current() {
|
||||
/*
|
||||
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()));
|
||||
if (!ste)
|
||||
return;
|
||||
|
@ -69,7 +69,6 @@ class ShaderEditor : public PanelContainer {
|
||||
GDCLASS(ShaderEditor, PanelContainer);
|
||||
|
||||
enum {
|
||||
|
||||
EDIT_UNDO,
|
||||
EDIT_REDO,
|
||||
EDIT_CUT,
|
||||
|
@ -43,7 +43,6 @@ class TileMapEditor : public VBoxContainer {
|
||||
GDCLASS(TileMapEditor, VBoxContainer);
|
||||
|
||||
enum Tool {
|
||||
|
||||
TOOL_NONE,
|
||||
TOOL_PAINTING,
|
||||
TOOL_ERASING,
|
||||
@ -58,7 +57,6 @@ class TileMapEditor : public VBoxContainer {
|
||||
};
|
||||
|
||||
enum Options {
|
||||
|
||||
OPTION_COPY,
|
||||
OPTION_ERASE_SELECTION,
|
||||
OPTION_FIX_INVALID,
|
||||
|
@ -43,7 +43,6 @@ class VersionControlEditorPlugin : public EditorPlugin {
|
||||
|
||||
public:
|
||||
enum ChangeType {
|
||||
|
||||
CHANGE_TYPE_NEW = 0,
|
||||
CHANGE_TYPE_MODIFIED = 1,
|
||||
CHANGE_TYPE_RENAMED = 2,
|
||||
|
@ -55,7 +55,6 @@ class SceneTreeDock : public VBoxContainer {
|
||||
GDCLASS(SceneTreeDock, VBoxContainer);
|
||||
|
||||
enum Tool {
|
||||
|
||||
TOOL_NEW,
|
||||
TOOL_INSTANCE,
|
||||
TOOL_EXPAND_COLLAPSE,
|
||||
|
@ -93,7 +93,6 @@ float Performance::_get_node_count() const {
|
||||
String Performance::get_monitor_name(Monitor p_monitor) const {
|
||||
ERR_FAIL_INDEX_V(p_monitor, MONITOR_MAX, String());
|
||||
static const char *names[MONITOR_MAX] = {
|
||||
|
||||
"time/fps",
|
||||
"time/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);
|
||||
// ugly
|
||||
static const MonitorType types[MONITOR_MAX] = {
|
||||
|
||||
MONITOR_TYPE_QUANTITY,
|
||||
MONITOR_TYPE_TIME,
|
||||
MONITOR_TYPE_TIME,
|
||||
|
@ -63,7 +63,6 @@ class Performance : public Object {
|
||||
|
||||
public:
|
||||
enum Monitor {
|
||||
|
||||
TIME_FPS,
|
||||
TIME_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) {
|
||||
|
||||
const INDETERMINATE_STATUS_STEP_MS = 100;
|
||||
const persistentPaths = ['/home/web_user/.config', '/home/web_user/projects'];
|
||||
|
||||
@ -296,7 +295,6 @@
|
||||
adjustCanvasDimensions();
|
||||
|
||||
setStatusMode = function setStatusMode(mode) {
|
||||
|
||||
if (statusMode === mode || !initializing)
|
||||
return;
|
||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
||||
@ -325,7 +323,6 @@
|
||||
}
|
||||
|
||||
function animateStatusIndeterminate(ms) {
|
||||
|
||||
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
|
||||
if (statusIndeterminate.children[i].style.borderTopColor == '') {
|
||||
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
|
||||
@ -336,7 +333,6 @@
|
||||
}
|
||||
|
||||
setStatusNotice = function setStatusNotice(text) {
|
||||
|
||||
while (statusNotice.lastChild) {
|
||||
statusNotice.removeChild(statusNotice.lastChild);
|
||||
}
|
||||
@ -348,7 +344,6 @@
|
||||
};
|
||||
|
||||
engine.setProgressFunc((current, total) => {
|
||||
|
||||
if (total > 0) {
|
||||
statusProgressInner.style.width = current/total * 100 + '%';
|
||||
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;
|
||||
|
||||
(function() {
|
||||
|
||||
const EXECUTABLE_NAME = '$GODOT_BASENAME';
|
||||
const MAIN_PACK = '$GODOT_BASENAME.pck';
|
||||
const EXTRA_ARGS = JSON.parse('$GODOT_ARGS');
|
||||
@ -247,7 +246,6 @@ $GODOT_HEAD_INCLUDE
|
||||
var indeterminiateStatusAnimationId = 0;
|
||||
|
||||
function setStatusMode(mode) {
|
||||
|
||||
if (statusMode === mode || !initializing)
|
||||
return;
|
||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
||||
@ -288,7 +286,6 @@ $GODOT_HEAD_INCLUDE
|
||||
}
|
||||
|
||||
function setStatusNotice(text) {
|
||||
|
||||
while (statusNotice.lastChild) {
|
||||
statusNotice.removeChild(statusNotice.lastChild);
|
||||
}
|
||||
@ -300,7 +297,6 @@ $GODOT_HEAD_INCLUDE
|
||||
};
|
||||
|
||||
engine.setProgressFunc((current, total) => {
|
||||
|
||||
if (total > 0) {
|
||||
statusProgressInner.style.width = current/total * 100 + '%';
|
||||
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;
|
||||
|
||||
(function() {
|
||||
|
||||
const EXECUTABLE_NAME = '$GODOT_BASENAME';
|
||||
const MAIN_PACK = '$GODOT_BASENAME.pck';
|
||||
const EXTRA_ARGS = JSON.parse('$GODOT_ARGS');
|
||||
@ -188,7 +187,6 @@ $GODOT_HEAD_INCLUDE
|
||||
}
|
||||
|
||||
setStatusMode = function setStatusMode(mode) {
|
||||
|
||||
if (statusMode === mode || !initializing)
|
||||
return;
|
||||
[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
|
||||
@ -217,7 +215,6 @@ $GODOT_HEAD_INCLUDE
|
||||
};
|
||||
|
||||
function animateStatusIndeterminate(ms) {
|
||||
|
||||
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
|
||||
if (statusIndeterminate.children[i].style.borderTopColor == '') {
|
||||
Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
|
||||
@ -228,7 +225,6 @@ $GODOT_HEAD_INCLUDE
|
||||
}
|
||||
|
||||
setStatusNotice = function setStatusNotice(text) {
|
||||
|
||||
while (statusNotice.lastChild) {
|
||||
statusNotice.removeChild(statusNotice.lastChild);
|
||||
}
|
||||
@ -240,7 +236,6 @@ $GODOT_HEAD_INCLUDE
|
||||
};
|
||||
|
||||
engine.setProgressFunc((current, total) => {
|
||||
|
||||
if (total > 0) {
|
||||
statusProgressInner.style.width = current/total * 100 + '%';
|
||||
setStatusMode('progress');
|
||||
|
@ -40,6 +40,13 @@ while IFS= read -rd '' f; do
|
||||
perl -i -ple 's/\s*$//g' "$f"
|
||||
# Remove the character sequence "== true" if it has a leading space.
|
||||
perl -i -pe 's/\x20== true//g' "$f"
|
||||
|
||||
if [[ $(uname) == "Linux" ]] && [[ "$f" != *"xml" ]]; then
|
||||
# Remove empty lines after the opening brace of indented blocks.
|
||||
sed -z -i 's/\x7B\x0A\x0A\x09/\x7B\x0A\x09/g' "$f"
|
||||
# Remove empty lines before the closing brace (in some cases).
|
||||
sed -z -i 's/\x0A\x0A\x7D/\x0A\x7D/g' "$f"
|
||||
fi
|
||||
done
|
||||
|
||||
git diff > patch.patch
|
||||
|
@ -39,44 +39,36 @@
|
||||
#include <transcoder/basisu_transcoder.h>
|
||||
|
||||
void TextureBasisU::_bind_methods() {
|
||||
|
||||
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("import"), &TextureBasisU::import);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::PACKED_BYTE_ARRAY, "basisu_data"), "set_basisu_data", "get_basisu_data");
|
||||
|
||||
};
|
||||
|
||||
int TextureBasisU::get_width() const {
|
||||
|
||||
return tex_size.x;
|
||||
};
|
||||
|
||||
int TextureBasisU::get_height() const {
|
||||
|
||||
return tex_size.y;
|
||||
};
|
||||
|
||||
RID TextureBasisU::get_rid() const {
|
||||
|
||||
return texture;
|
||||
};
|
||||
|
||||
|
||||
bool TextureBasisU::has_alpha() const {
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
void TextureBasisU::set_flags(uint32_t p_flags) {
|
||||
|
||||
flags = p_flags;
|
||||
RenderingServer::get_singleton()->texture_set_flags(texture, p_flags);
|
||||
};
|
||||
|
||||
uint32_t TextureBasisU::get_flags() const {
|
||||
|
||||
return flags;
|
||||
};
|
||||
|
||||
@ -95,12 +87,10 @@ void TextureBasisU::set_basisu_data(const Vector<uint8_t>& p_data) {
|
||||
Image::Format imgfmt;
|
||||
|
||||
if (OS::get_singleton()->has_feature("s3tc")) {
|
||||
|
||||
format = basist::cTFBC3; // get this from renderer
|
||||
imgfmt = Image::FORMAT_DXT5;
|
||||
|
||||
} else if (OS::get_singleton()->has_feature("etc2")) {
|
||||
|
||||
format = basist::cTFETC2;
|
||||
imgfmt = Image::FORMAT_ETC2_RGBA8;
|
||||
};
|
||||
@ -126,7 +116,6 @@ void TextureBasisU::set_basisu_data(const Vector<uint8_t>& p_data) {
|
||||
int ofs = 0;
|
||||
tr.start_transcoding(ptr, size);
|
||||
for (int i=0; i<info.m_total_levels; i++) {
|
||||
|
||||
basist::basisu_image_level_info level;
|
||||
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 {
|
||||
|
||||
return data;
|
||||
};
|
||||
|
||||
TextureBasisU::TextureBasisU() {
|
||||
|
||||
flags = FLAGS_DEFAULT;
|
||||
texture = RenderingServer::get_singleton()->texture_create();
|
||||
};
|
||||
|
||||
|
||||
TextureBasisU::~TextureBasisU() {
|
||||
|
||||
RenderingServer::get_singleton()->free(texture);
|
||||
};
|
||||
|
||||
|
@ -41,7 +41,6 @@
|
||||
|
||||
#if 0
|
||||
class TextureBasisU : public Texture {
|
||||
|
||||
GDCLASS(TextureBasisU, Texture);
|
||||
RES_BASE_EXTENSION("butex");
|
||||
|
||||
@ -74,7 +73,6 @@ public:
|
||||
|
||||
TextureBasisU();
|
||||
~TextureBasisU();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -373,7 +373,6 @@ RES ResourceFormatDDS::load(const String &p_path, const String &p_original_path,
|
||||
int colcount = size/4;
|
||||
|
||||
for(int i=0;i<colcount;i++) {
|
||||
|
||||
uint8_t r = wb[i*4+1];
|
||||
uint8_t g = wb[i*4+2];
|
||||
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;
|
||||
|
||||
for(int i=0;i<colcount;i++) {
|
||||
|
||||
SWAP( wb[i*3+0],wb[i*3+2] );
|
||||
}*/
|
||||
} 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
|
||||
// This saves space while maintaining the alpha channel
|
||||
if (detected_channels == Image::USED_CHANNELS_RGBA) {
|
||||
|
||||
if (p_img->has_mipmaps()) {
|
||||
// Image doesn't support mipmaps with RGBA4444 textures
|
||||
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);
|
||||
return;
|
||||
} else if (detected_channels == Image::USE_CHANNELS_LA) {
|
||||
|
||||
p_img->convert(Image::FORMAT_LA8);
|
||||
return;
|
||||
}
|
||||
|
@ -85,7 +85,6 @@ typedef enum {
|
||||
} godot_nativescript_property_hint;
|
||||
|
||||
typedef enum {
|
||||
|
||||
GODOT_PROPERTY_USAGE_STORAGE = 1,
|
||||
GODOT_PROPERTY_USAGE_EDITOR = 2,
|
||||
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);
|
||||
godot_string_destroy(&s);
|
||||
}
|
||||
|
||||
} // namespace TestGDNativeString
|
||||
|
||||
#endif // TEST_GDNATIVE_STRING_H
|
||||
|
@ -1781,7 +1781,6 @@ static String marked_documentation(const String &p_bbcode) {
|
||||
}
|
||||
return markdown;
|
||||
}
|
||||
|
||||
} // namespace lsp
|
||||
|
||||
#endif
|
||||
|
@ -303,5 +303,4 @@ void test(TestType p_type) {
|
||||
ScriptServer::finish_languages();
|
||||
memdelete(packed_data);
|
||||
}
|
||||
|
||||
} // namespace TestGDScript
|
||||
|
@ -41,7 +41,6 @@ enum TestType {
|
||||
};
|
||||
|
||||
void test(TestType p_type);
|
||||
|
||||
} // namespace TestGDScript
|
||||
|
||||
#endif // TEST_GDSCRIPT_H
|
||||
|
@ -41,12 +41,10 @@ class GridMapEditor : public VBoxContainer {
|
||||
GDCLASS(GridMapEditor, VBoxContainer);
|
||||
|
||||
enum {
|
||||
|
||||
GRID_CURSOR_SIZE = 50
|
||||
};
|
||||
|
||||
enum InputAction {
|
||||
|
||||
INPUT_NONE,
|
||||
INPUT_PAINT,
|
||||
INPUT_ERASE,
|
||||
@ -56,7 +54,6 @@ class GridMapEditor : public VBoxContainer {
|
||||
};
|
||||
|
||||
enum ClipMode {
|
||||
|
||||
CLIP_DISABLED,
|
||||
CLIP_ABOVE,
|
||||
CLIP_BELOW
|
||||
@ -158,7 +155,6 @@ class GridMapEditor : public VBoxContainer {
|
||||
int cursor_rot;
|
||||
|
||||
enum Menu {
|
||||
|
||||
MENU_OPTION_NEXT_LEVEL,
|
||||
MENU_OPTION_PREV_LEVEL,
|
||||
MENU_OPTION_LOCK_VIEW,
|
||||
|
@ -32,7 +32,6 @@ namespace {
|
||||
static const int config_compressed_size = %d;
|
||||
static const int config_uncompressed_size = %d;
|
||||
static const unsigned char config_compressed_data[] = { %s };
|
||||
|
||||
} // namespace
|
||||
|
||||
String get_godot_android_mono_config() {
|
||||
|
@ -246,5 +246,4 @@ PackedStringArray get_code_completion(CompletionKind p_kind, const String &p_scr
|
||||
|
||||
return suggestions;
|
||||
}
|
||||
|
||||
} // namespace gdmono
|
||||
|
@ -50,7 +50,6 @@ enum class CompletionKind {
|
||||
};
|
||||
|
||||
PackedStringArray get_code_completion(CompletionKind p_kind, const String &p_script_file);
|
||||
|
||||
} // namespace gdmono
|
||||
|
||||
#endif // CODE_COMPLETION_H
|
||||
|
@ -141,5 +141,4 @@ Error get_exported_assembly_dependencies(const Dictionary &p_initial_assemblies,
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
} // 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,
|
||||
const String &p_build_config, const String &p_custom_lib_dir, Dictionary &r_assembly_dependencies);
|
||||
|
||||
} // namespace GodotSharpExport
|
||||
|
||||
#endif // GODOTSHARP_EXPORT_H
|
||||
|
@ -322,5 +322,4 @@ String get_data_mono_bin_dir() {
|
||||
return _GodotSharpDirs::get_singleton().data_mono_bin_dir;
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace GodotSharpDirs
|
||||
|
@ -66,7 +66,6 @@ String get_data_mono_lib_dir();
|
||||
#ifdef WINDOWS_ENABLED
|
||||
String get_data_mono_bin_dir();
|
||||
#endif
|
||||
|
||||
} // namespace GodotSharpDirs
|
||||
|
||||
#endif // GODOTSHARP_DIRS_H
|
||||
|
@ -42,7 +42,6 @@ enum class GCHandleType : char {
|
||||
STRONG_HANDLE,
|
||||
WEAK_HANDLE
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// 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);
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace
|
||||
|
||||
void GDMono::add_mono_shared_libs_dir_to_path() {
|
||||
|
@ -283,7 +283,6 @@ public:
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace gdmono
|
||||
|
||||
#define _GDMONO_SCOPE_DOMAIN_(m_mono_domain) \
|
||||
|
@ -316,5 +316,4 @@ void update_godot_api_cache() {
|
||||
|
||||
cached_data.godot_api_cache_updated = true;
|
||||
}
|
||||
|
||||
} // namespace GDMonoCache
|
||||
|
@ -181,7 +181,6 @@ inline void clear_corlib_cache() {
|
||||
inline void clear_godot_api_cache() {
|
||||
cached_data.clear_godot_api_cache();
|
||||
}
|
||||
|
||||
} // namespace GDMonoCache
|
||||
|
||||
#define CACHED_CLASS(m_class) (GDMonoCache::cached_data.class_##m_class)
|
||||
|
@ -127,5 +127,4 @@ void unhandled_exception(MonoException *p_exc) {
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace GDMonoInternals
|
||||
|
@ -46,7 +46,6 @@ void tie_managed_to_unmanaged(MonoObject *managed, Object *unmanaged);
|
||||
* Use GDMonoUtils::debug_unhandled_exception(MonoException *) instead.
|
||||
*/
|
||||
void unhandled_exception(MonoException *p_exc);
|
||||
|
||||
} // namespace GDMonoInternals
|
||||
|
||||
#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());
|
||||
return { owner_managed, name_string_name_managed };
|
||||
}
|
||||
|
||||
} // namespace GDMonoMarshal
|
||||
|
@ -271,7 +271,6 @@ static_assert(MATCHES_Vector2 && MATCHES_Rect2 && MATCHES_Transform2D && MATCHES
|
||||
MATCHES_Plane && MATCHES_Vector2i && MATCHES_Rect2i && MATCHES_Vector3i);
|
||||
/* clang-format on */
|
||||
#endif
|
||||
|
||||
} // namespace InteropLayout
|
||||
|
||||
#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_OUT(m_type, m_from) (GDMonoMarshal::marshalled_out_##m_type(m_from))
|
||||
|
||||
} // namespace GDMonoMarshal
|
||||
|
||||
#endif // GDMONOMARSHAL_H
|
||||
|
@ -659,7 +659,6 @@ GDMonoClass *make_generic_dictionary_type(MonoReflectionType *p_key_reftype, Mon
|
||||
UNHANDLED_EXCEPTION(exc);
|
||||
return GDMono::get_singleton()->get_class(mono_class_from_mono_type(mono_reflection_type_get_type(reftype)));
|
||||
}
|
||||
|
||||
} // namespace Marshal
|
||||
|
||||
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));
|
||||
return ptr ? *ptr : StringName();
|
||||
}
|
||||
|
||||
} // 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_dictionary_type(MonoReflectionType *p_key_reftype, MonoReflectionType *p_value_reftype);
|
||||
|
||||
} // namespace Marshal
|
||||
|
||||
_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);
|
||||
|
||||
} // namespace GDMonoUtils
|
||||
|
||||
#define NATIVE_GDMONOCLASS_NAME(m_class) (GDMonoUtils::get_native_godot_class_name(m_class))
|
||||
|
@ -387,7 +387,6 @@ void cleanup() {
|
||||
certStore = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace support
|
||||
} // namespace android
|
||||
} // namespace gdmono
|
||||
|
@ -45,7 +45,6 @@ void initialize();
|
||||
void cleanup();
|
||||
|
||||
void register_internal_calls();
|
||||
|
||||
} // namespace support
|
||||
} // namespace android
|
||||
} // namespace gdmono
|
||||
|
@ -41,7 +41,6 @@ namespace support {
|
||||
|
||||
void initialize();
|
||||
void cleanup();
|
||||
|
||||
} // namespace support
|
||||
} // namespace ios
|
||||
} // 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