mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Style: Apply fixes from clang-format 18.1.3
This commit is contained in:
parent
c8169ea274
commit
a6c5fc2720
46 changed files with 142 additions and 149 deletions
|
|
@ -1085,7 +1085,7 @@ static void gdextension_editor_remove_plugin(GDExtensionConstStringNamePtr p_cla
|
|||
#endif
|
||||
}
|
||||
|
||||
#define REGISTER_INTERFACE_FUNC(m_name) GDExtension::register_interface_function(#m_name, (GDExtensionInterfaceFunctionPtr)&gdextension_##m_name)
|
||||
#define REGISTER_INTERFACE_FUNC(m_name) GDExtension::register_interface_function(#m_name, (GDExtensionInterfaceFunctionPtr) & gdextension_##m_name)
|
||||
|
||||
void gdextension_setup_interface() {
|
||||
REGISTER_INTERFACE_FUNC(get_godot_version);
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ static inline void _build_faces(uint8_t ***p_cell_status, int x, int y, int z, i
|
|||
return;
|
||||
}
|
||||
|
||||
#define vert(m_idx) Vector3(((m_idx)&4) >> 2, ((m_idx)&2) >> 1, (m_idx)&1)
|
||||
#define vert(m_idx) Vector3(((m_idx) & 4) >> 2, ((m_idx) & 2) >> 1, (m_idx) & 1)
|
||||
|
||||
static const uint8_t indices[6][4] = {
|
||||
{ 7, 6, 4, 5 },
|
||||
|
|
|
|||
|
|
@ -810,7 +810,7 @@ struct VariantInternalAccessor<bool> {
|
|||
#define VARIANT_ACCESSOR_NUMBER(m_type) \
|
||||
template <> \
|
||||
struct VariantInternalAccessor<m_type> { \
|
||||
static _FORCE_INLINE_ m_type get(const Variant *v) { return (m_type)*VariantInternal::get_int(v); } \
|
||||
static _FORCE_INLINE_ m_type get(const Variant *v) { return (m_type) * VariantInternal::get_int(v); } \
|
||||
static _FORCE_INLINE_ void set(Variant *v, m_type p_value) { *VariantInternal::get_int(v) = p_value; } \
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -428,9 +428,9 @@ Variant Variant::get_named(const StringName &p_member, bool &r_valid) const {
|
|||
} \
|
||||
m_assign_type num; \
|
||||
if (value->get_type() == Variant::INT) { \
|
||||
num = (m_assign_type)*VariantGetInternalPtr<int64_t>::get_ptr(value); \
|
||||
num = (m_assign_type) * VariantGetInternalPtr<int64_t>::get_ptr(value); \
|
||||
} else if (value->get_type() == Variant::FLOAT) { \
|
||||
num = (m_assign_type)*VariantGetInternalPtr<double>::get_ptr(value); \
|
||||
num = (m_assign_type) * VariantGetInternalPtr<double>::get_ptr(value); \
|
||||
} else { \
|
||||
*oob = false; \
|
||||
*valid = false; \
|
||||
|
|
@ -490,9 +490,9 @@ Variant Variant::get_named(const StringName &p_member, bool &r_valid) const {
|
|||
} \
|
||||
m_assign_type num; \
|
||||
if (value->get_type() == Variant::INT) { \
|
||||
num = (m_assign_type)*VariantGetInternalPtr<int64_t>::get_ptr(value); \
|
||||
num = (m_assign_type) * VariantGetInternalPtr<int64_t>::get_ptr(value); \
|
||||
} else if (value->get_type() == Variant::FLOAT) { \
|
||||
num = (m_assign_type)*VariantGetInternalPtr<double>::get_ptr(value); \
|
||||
num = (m_assign_type) * VariantGetInternalPtr<double>::get_ptr(value); \
|
||||
} else { \
|
||||
*oob = false; \
|
||||
*valid = false; \
|
||||
|
|
|
|||
|
|
@ -190,9 +190,7 @@ void main() {
|
|||
#endif
|
||||
|
||||
{
|
||||
|
||||
#CODE : SKY
|
||||
|
||||
}
|
||||
|
||||
color *= luminance_multiplier;
|
||||
|
|
|
|||
|
|
@ -81,9 +81,9 @@ public:
|
|||
virtual ~RenderSceneBuffersGLES3();
|
||||
virtual void configure(RID p_render_target, const Size2i p_internal_size, const Size2i p_target_size, RS::ViewportScaling3DMode p_scaling_3d_mode, float p_fsr_sharpness, float p_texture_mipmap_bias, RS::ViewportMSAA p_msaa, RenderingServer::ViewportScreenSpaceAA p_screen_space_aa, bool p_use_taa, bool p_use_debanding, uint32_t p_view_count) override;
|
||||
|
||||
virtual void set_fsr_sharpness(float p_fsr_sharpness) override{};
|
||||
virtual void set_texture_mipmap_bias(float p_texture_mipmap_bias) override{};
|
||||
virtual void set_use_debanding(bool p_use_debanding) override{};
|
||||
virtual void set_fsr_sharpness(float p_fsr_sharpness) override {};
|
||||
virtual void set_texture_mipmap_bias(float p_texture_mipmap_bias) override {};
|
||||
virtual void set_use_debanding(bool p_use_debanding) override {};
|
||||
|
||||
void free_render_buffer_data();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -516,7 +516,7 @@ public:
|
|||
RID texture_create_external(Texture::Type p_type, Image::Format p_format, unsigned int p_image, int p_width, int p_height, int p_depth, int p_layers, RS::TextureLayeredType p_layered_type = RS::TEXTURE_LAYERED_2D_ARRAY);
|
||||
|
||||
virtual void texture_2d_update(RID p_texture, const Ref<Image> &p_image, int p_layer = 0) override;
|
||||
virtual void texture_3d_update(RID p_texture, const Vector<Ref<Image>> &p_data) override{};
|
||||
virtual void texture_3d_update(RID p_texture, const Vector<Ref<Image>> &p_data) override {};
|
||||
virtual void texture_proxy_update(RID p_proxy, RID p_base) override;
|
||||
|
||||
//these two APIs can be used together or in combination with the others.
|
||||
|
|
@ -579,7 +579,7 @@ public:
|
|||
|
||||
virtual RID decal_allocate() override;
|
||||
virtual void decal_initialize(RID p_rid) override;
|
||||
virtual void decal_free(RID p_rid) override{};
|
||||
virtual void decal_free(RID p_rid) override {};
|
||||
|
||||
virtual void decal_set_size(RID p_decal, const Vector3 &p_size) override;
|
||||
virtual void decal_set_texture(RID p_decal, RS::DecalTexture p_type, RID p_texture) override;
|
||||
|
|
|
|||
|
|
@ -45,11 +45,11 @@
|
|||
#endif
|
||||
|
||||
#ifdef MSVC
|
||||
#define S_ISREG(m) ((m)&_S_IFREG)
|
||||
#define S_ISREG(m) ((m) & _S_IFREG)
|
||||
#include <io.h>
|
||||
#endif
|
||||
#ifndef S_ISREG
|
||||
#define S_ISREG(m) ((m)&S_IFREG)
|
||||
#define S_ISREG(m) ((m) & S_IFREG)
|
||||
#endif
|
||||
|
||||
void FileAccessUnix::check_errors() const {
|
||||
|
|
|
|||
|
|
@ -1341,8 +1341,8 @@ Error VulkanContext::_create_physical_device(VkSurfaceKHR p_surface) {
|
|||
#define GET_INSTANCE_PROC_ADDR(inst, entrypoint) \
|
||||
{ \
|
||||
fp##entrypoint = (PFN_vk##entrypoint)vkGetInstanceProcAddr(inst, "vk" #entrypoint); \
|
||||
ERR_FAIL_COND_V_MSG(fp##entrypoint == nullptr, ERR_CANT_CREATE, \
|
||||
"vkGetInstanceProcAddr failed to find vk" #entrypoint); \
|
||||
ERR_FAIL_COND_V_MSG(fp##entrypoint == nullptr, ERR_CANT_CREATE, \
|
||||
"vkGetInstanceProcAddr failed to find vk" #entrypoint); \
|
||||
}
|
||||
|
||||
GET_INSTANCE_PROC_ADDR(inst, GetPhysicalDeviceSurfaceSupportKHR);
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
#include <wchar.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define S_ISREG(m) ((m)&_S_IFREG)
|
||||
#define S_ISREG(m) ((m) & _S_IFREG)
|
||||
#endif
|
||||
|
||||
void FileAccessWindows::check_errors() const {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class EditorTitleBar : public HBoxContainer {
|
|||
|
||||
protected:
|
||||
virtual void gui_input(const Ref<InputEvent> &p_event) override;
|
||||
static void _bind_methods(){};
|
||||
static void _bind_methods() {};
|
||||
|
||||
public:
|
||||
void set_can_move_window(bool p_enabled);
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ class EditorPropertyFontMetaOverride : public EditorProperty {
|
|||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
static void _bind_methods(){};
|
||||
static void _bind_methods() {};
|
||||
|
||||
void _edit_pressed();
|
||||
void _page_changed(int p_page);
|
||||
|
|
@ -140,7 +140,7 @@ class EditorPropertyOTVariation : public EditorProperty {
|
|||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
static void _bind_methods(){};
|
||||
static void _bind_methods() {};
|
||||
|
||||
void _edit_pressed();
|
||||
void _page_changed(int p_page);
|
||||
|
|
@ -189,7 +189,7 @@ class EditorPropertyOTFeatures : public EditorProperty {
|
|||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
static void _bind_methods(){};
|
||||
static void _bind_methods() {};
|
||||
|
||||
void _edit_pressed();
|
||||
void _page_changed(int p_page);
|
||||
|
|
@ -256,7 +256,7 @@ protected:
|
|||
virtual void _add_element() override;
|
||||
|
||||
void _add_font(int p_option);
|
||||
static void _bind_methods(){};
|
||||
static void _bind_methods() {};
|
||||
|
||||
public:
|
||||
EditorPropertyFontNamesArray();
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ protected:
|
|||
Vector<Face3> geometry;
|
||||
|
||||
bool _generate(Vector<Vector3> &points, Vector<Vector3> &normals);
|
||||
virtual void _generate_emission_points(){};
|
||||
virtual void _generate_emission_points() {};
|
||||
void _node_selected(const NodePath &p_path);
|
||||
|
||||
static void _bind_methods();
|
||||
|
|
|
|||
|
|
@ -125,8 +125,8 @@ public:
|
|||
virtual Variant get_navigation_state() override;
|
||||
virtual Vector<String> get_functions() override;
|
||||
virtual PackedInt32Array get_breakpoints() override;
|
||||
virtual void set_breakpoint(int p_line, bool p_enabled) override{};
|
||||
virtual void clear_breakpoints() override{};
|
||||
virtual void set_breakpoint(int p_line, bool p_enabled) override {};
|
||||
virtual void clear_breakpoints() override {};
|
||||
virtual void goto_line(int p_line, bool p_with_error = false) override;
|
||||
void goto_line_selection(int p_line, int p_begin, int p_end);
|
||||
virtual void set_executing_line(int p_line) override;
|
||||
|
|
|
|||
|
|
@ -1002,7 +1002,7 @@ void TileDataDefaultEditor::forward_draw_over_atlas(TileAtlasView *p_tile_atlas_
|
|||
}
|
||||
};
|
||||
|
||||
void TileDataDefaultEditor::forward_draw_over_alternatives(TileAtlasView *p_tile_atlas_view, TileSetAtlasSource *p_tile_set_atlas_source, CanvasItem *p_canvas_item, Transform2D p_transform){
|
||||
void TileDataDefaultEditor::forward_draw_over_alternatives(TileAtlasView *p_tile_atlas_view, TileSetAtlasSource *p_tile_set_atlas_source, CanvasItem *p_canvas_item, Transform2D p_transform) {
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ private:
|
|||
protected:
|
||||
Ref<TileSet> tile_set;
|
||||
TileData *_get_tile_data(TileMapCell p_cell);
|
||||
virtual void _tile_set_changed(){};
|
||||
virtual void _tile_set_changed() {};
|
||||
|
||||
static void _bind_methods();
|
||||
|
||||
|
|
@ -62,13 +62,13 @@ public:
|
|||
|
||||
// Input to handle painting.
|
||||
virtual Control *get_toolbar() { return nullptr; };
|
||||
virtual void forward_draw_over_atlas(TileAtlasView *p_tile_atlas_view, TileSetAtlasSource *p_tile_atlas_source, CanvasItem *p_canvas_item, Transform2D p_transform){};
|
||||
virtual void forward_draw_over_alternatives(TileAtlasView *p_tile_atlas_view, TileSetAtlasSource *p_tile_atlas_source, CanvasItem *p_canvas_item, Transform2D p_transform){};
|
||||
virtual void forward_painting_atlas_gui_input(TileAtlasView *p_tile_atlas_view, TileSetAtlasSource *p_tile_atlas_source, const Ref<InputEvent> &p_event){};
|
||||
virtual void forward_painting_alternatives_gui_input(TileAtlasView *p_tile_atlas_view, TileSetAtlasSource *p_tile_atlas_source, const Ref<InputEvent> &p_event){};
|
||||
virtual void forward_draw_over_atlas(TileAtlasView *p_tile_atlas_view, TileSetAtlasSource *p_tile_atlas_source, CanvasItem *p_canvas_item, Transform2D p_transform) {};
|
||||
virtual void forward_draw_over_alternatives(TileAtlasView *p_tile_atlas_view, TileSetAtlasSource *p_tile_atlas_source, CanvasItem *p_canvas_item, Transform2D p_transform) {};
|
||||
virtual void forward_painting_atlas_gui_input(TileAtlasView *p_tile_atlas_view, TileSetAtlasSource *p_tile_atlas_source, const Ref<InputEvent> &p_event) {};
|
||||
virtual void forward_painting_alternatives_gui_input(TileAtlasView *p_tile_atlas_view, TileSetAtlasSource *p_tile_atlas_source, const Ref<InputEvent> &p_event) {};
|
||||
|
||||
// Used to draw the tile data property value over a tile.
|
||||
virtual void draw_over_tile(CanvasItem *p_canvas_item, Transform2D p_transform, TileMapCell p_cell, bool p_selected = false){};
|
||||
virtual void draw_over_tile(CanvasItem *p_canvas_item, Transform2D p_transform, TileMapCell p_cell, bool p_selected = false) {};
|
||||
};
|
||||
|
||||
class DummyObject : public Object {
|
||||
|
|
|
|||
|
|
@ -60,9 +60,9 @@ public:
|
|||
};
|
||||
|
||||
virtual bool forward_canvas_gui_input(const Ref<InputEvent> &p_event) { return false; };
|
||||
virtual void forward_canvas_draw_over_viewport(Control *p_overlay){};
|
||||
virtual void tile_set_changed(){};
|
||||
virtual void edit(ObjectID p_tile_map_id, int p_tile_map_layer){};
|
||||
virtual void forward_canvas_draw_over_viewport(Control *p_overlay) {};
|
||||
virtual void tile_set_changed() {};
|
||||
virtual void edit(ObjectID p_tile_map_id, int p_tile_map_layer) {};
|
||||
};
|
||||
|
||||
class TileMapEditorTilesPlugin : public TileMapEditorPlugin {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include "core/variant/variant.h"
|
||||
|
||||
#ifndef LINE_NUMBER_TO_INDEX
|
||||
#define LINE_NUMBER_TO_INDEX(p_line) ((p_line)-1)
|
||||
#define LINE_NUMBER_TO_INDEX(p_line) ((p_line) - 1)
|
||||
#endif
|
||||
|
||||
#ifndef SYMBOL_SEPERATOR
|
||||
|
|
|
|||
|
|
@ -664,7 +664,7 @@ class TextServerAdvanced : public TextServerExtension {
|
|||
};
|
||||
|
||||
protected:
|
||||
static void _bind_methods(){};
|
||||
static void _bind_methods() {};
|
||||
|
||||
void full_copy(ShapedTextDataAdvanced *p_shaped);
|
||||
void invalidate(ShapedTextDataAdvanced *p_shaped, bool p_text = false);
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ using namespace godot;
|
|||
|
||||
/*************************************************************************/
|
||||
|
||||
#define OT_TAG(c1, c2, c3, c4) ((int32_t)((((uint32_t)(c1)&0xff) << 24) | (((uint32_t)(c2)&0xff) << 16) | (((uint32_t)(c3)&0xff) << 8) | ((uint32_t)(c4)&0xff)))
|
||||
#define OT_TAG(c1, c2, c3, c4) ((int32_t)((((uint32_t)(c1) & 0xff) << 24) | (((uint32_t)(c2) & 0xff) << 16) | (((uint32_t)(c3) & 0xff) << 8) | ((uint32_t)(c4) & 0xff)))
|
||||
|
||||
bool TextServerFallback::_has_feature(Feature p_feature) const {
|
||||
switch (p_feature) {
|
||||
|
|
|
|||
|
|
@ -533,7 +533,7 @@ class TextServerFallback : public TextServerExtension {
|
|||
Mutex ft_mutex;
|
||||
|
||||
protected:
|
||||
static void _bind_methods(){};
|
||||
static void _bind_methods() {};
|
||||
|
||||
void full_copy(ShapedTextDataFallback *p_shaped);
|
||||
void invalidate(ShapedTextDataFallback *p_shaped);
|
||||
|
|
|
|||
|
|
@ -380,7 +380,7 @@ void EditorExportPlatformAndroid::_check_for_changes_poll_thread(void *ud) {
|
|||
d.description += "Chipset: " + p.get_slice("=", 1).strip_edges() + "\n";
|
||||
} else if (p.begins_with("ro.opengles.version=")) {
|
||||
uint32_t opengl = p.get_slice("=", 1).to_int();
|
||||
d.description += "OpenGL: " + itos(opengl >> 16) + "." + itos((opengl >> 8) & 0xFF) + "." + itos((opengl)&0xFF) + "\n";
|
||||
d.description += "OpenGL: " + itos(opengl >> 16) + "." + itos((opengl >> 8) & 0xFF) + "." + itos((opengl) & 0xFF) + "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public final class SignalInfo {
|
|||
}
|
||||
|
||||
this.name = signalName;
|
||||
this.paramTypes = paramTypes == null ? new Class<?>[ 0 ] : paramTypes;
|
||||
this.paramTypes = paramTypes == null ? new Class<?>[0] : paramTypes;
|
||||
this.paramTypesNames = new String[this.paramTypes.length];
|
||||
for (int i = 0; i < this.paramTypes.length; i++) {
|
||||
this.paramTypesNames[i] = this.paramTypes[i].getName();
|
||||
|
|
|
|||
|
|
@ -53,8 +53,8 @@
|
|||
#if defined(VULKAN_ENABLED)
|
||||
#include "servers/rendering/renderer_rd/renderer_compositor_rd.h"
|
||||
|
||||
#import <QuartzCore/CAMetalLayer.h>
|
||||
#include "drivers/vulkan/godot_vulkan.h"
|
||||
#import <QuartzCore/CAMetalLayer.h>
|
||||
#endif
|
||||
|
||||
// Initialization order between compilation units is not guaranteed,
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
#define LONG_BITS (sizeof(long) * 8)
|
||||
#define test_bit(nr, addr) (((1UL << ((nr) % LONG_BITS)) & ((addr)[(nr) / LONG_BITS])) != 0)
|
||||
#define NBITS(x) ((((x)-1) / LONG_BITS) + 1)
|
||||
#define NBITS(x) ((((x) - 1) / LONG_BITS) + 1)
|
||||
|
||||
#ifdef UDEV_ENABLED
|
||||
static const char *ignore_str = "/dev/input/js";
|
||||
|
|
|
|||
|
|
@ -3390,7 +3390,7 @@ void DisplayServerMacOS::cursor_set_custom_image(const Ref<Resource> &p_cursor,
|
|||
uint8_t alpha = (color >> 24) & 0xFF;
|
||||
pixels[i * 4 + 0] = ((color >> 16) & 0xFF) * alpha / 255;
|
||||
pixels[i * 4 + 1] = ((color >> 8) & 0xFF) * alpha / 255;
|
||||
pixels[i * 4 + 2] = ((color)&0xFF) * alpha / 255;
|
||||
pixels[i * 4 + 2] = ((color) & 0xFF) * alpha / 255;
|
||||
pixels[i * 4 + 3] = alpha;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2285,9 +2285,9 @@ void DisplayServerWindows::set_context(Context p_context) {
|
|||
#define SIGNATURE_MASK 0xFFFFFF00
|
||||
// Keeping the name suggested by Microsoft, but this macro really answers:
|
||||
// Is this mouse event emulated from touch or pen input?
|
||||
#define IsPenEvent(dw) (((dw)&SIGNATURE_MASK) == MI_WP_SIGNATURE)
|
||||
#define IsPenEvent(dw) (((dw) & SIGNATURE_MASK) == MI_WP_SIGNATURE)
|
||||
// This one tells whether the event comes from touchscreen (and not from pen).
|
||||
#define IsTouchEvent(dw) (IsPenEvent(dw) && ((dw)&0x80))
|
||||
#define IsTouchEvent(dw) (IsPenEvent(dw) && ((dw) & 0x80))
|
||||
|
||||
void DisplayServerWindows::_touch_event(WindowID p_window, bool p_pressed, float p_x, float p_y, int idx) {
|
||||
if (touch_state.has(idx) == p_pressed) {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ protected:
|
|||
float auto_exposure_max = 64.0;
|
||||
float auto_exposure_speed = 0.5;
|
||||
float auto_exposure_scale = 0.4;
|
||||
virtual void _update_auto_exposure(){};
|
||||
virtual void _update_auto_exposure() {};
|
||||
|
||||
public:
|
||||
virtual RID get_rid() const override;
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ protected:
|
|||
|
||||
Vector2 get_uv2_scale(Vector2 p_margin_scale = Vector2(1.0, 1.0)) const;
|
||||
float get_lightmap_texel_size() const;
|
||||
virtual void _update_lightmap_size(){};
|
||||
virtual void _update_lightmap_size() {};
|
||||
|
||||
public:
|
||||
virtual int get_surface_count() const override;
|
||||
|
|
|
|||
|
|
@ -557,25 +557,25 @@ public:
|
|||
// Not exposed.
|
||||
virtual void set_tile_set(const TileSet *p_tile_set);
|
||||
TileSet *get_tile_set() const;
|
||||
virtual void notify_tile_data_properties_should_change(){};
|
||||
virtual void add_occlusion_layer(int p_index){};
|
||||
virtual void move_occlusion_layer(int p_from_index, int p_to_pos){};
|
||||
virtual void remove_occlusion_layer(int p_index){};
|
||||
virtual void add_physics_layer(int p_index){};
|
||||
virtual void move_physics_layer(int p_from_index, int p_to_pos){};
|
||||
virtual void remove_physics_layer(int p_index){};
|
||||
virtual void add_terrain_set(int p_index){};
|
||||
virtual void move_terrain_set(int p_from_index, int p_to_pos){};
|
||||
virtual void remove_terrain_set(int p_index){};
|
||||
virtual void add_terrain(int p_terrain_set, int p_index){};
|
||||
virtual void move_terrain(int p_terrain_set, int p_from_index, int p_to_pos){};
|
||||
virtual void remove_terrain(int p_terrain_set, int p_index){};
|
||||
virtual void add_navigation_layer(int p_index){};
|
||||
virtual void move_navigation_layer(int p_from_index, int p_to_pos){};
|
||||
virtual void remove_navigation_layer(int p_index){};
|
||||
virtual void add_custom_data_layer(int p_index){};
|
||||
virtual void move_custom_data_layer(int p_from_index, int p_to_pos){};
|
||||
virtual void remove_custom_data_layer(int p_index){};
|
||||
virtual void notify_tile_data_properties_should_change() {};
|
||||
virtual void add_occlusion_layer(int p_index) {};
|
||||
virtual void move_occlusion_layer(int p_from_index, int p_to_pos) {};
|
||||
virtual void remove_occlusion_layer(int p_index) {};
|
||||
virtual void add_physics_layer(int p_index) {};
|
||||
virtual void move_physics_layer(int p_from_index, int p_to_pos) {};
|
||||
virtual void remove_physics_layer(int p_index) {};
|
||||
virtual void add_terrain_set(int p_index) {};
|
||||
virtual void move_terrain_set(int p_from_index, int p_to_pos) {};
|
||||
virtual void remove_terrain_set(int p_index) {};
|
||||
virtual void add_terrain(int p_terrain_set, int p_index) {};
|
||||
virtual void move_terrain(int p_terrain_set, int p_from_index, int p_to_pos) {};
|
||||
virtual void remove_terrain(int p_terrain_set, int p_index) {};
|
||||
virtual void add_navigation_layer(int p_index) {};
|
||||
virtual void move_navigation_layer(int p_from_index, int p_to_pos) {};
|
||||
virtual void remove_navigation_layer(int p_index) {};
|
||||
virtual void add_custom_data_layer(int p_index) {};
|
||||
virtual void move_custom_data_layer(int p_from_index, int p_to_pos) {};
|
||||
virtual void remove_custom_data_layer(int p_index) {};
|
||||
virtual void reset_state() override;
|
||||
|
||||
// Tiles.
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@ public:
|
|||
virtual void delete_sub_window(WindowID p_id);
|
||||
|
||||
virtual WindowID window_get_active_popup() const { return INVALID_WINDOW_ID; };
|
||||
virtual void window_set_popup_safe_rect(WindowID p_window, const Rect2i &p_rect){};
|
||||
virtual void window_set_popup_safe_rect(WindowID p_window, const Rect2i &p_rect) {};
|
||||
virtual Rect2i window_get_popup_safe_rect(WindowID p_window) const { return Rect2i(); };
|
||||
|
||||
virtual int64_t window_get_native_handle(HandleType p_handle_type, WindowID p_window = MAIN_WINDOW_ID) const;
|
||||
|
|
@ -503,7 +503,7 @@ public:
|
|||
virtual int tablet_get_driver_count() const { return 1; };
|
||||
virtual String tablet_get_driver_name(int p_driver) const { return "default"; };
|
||||
virtual String tablet_get_current_driver() const { return "default"; };
|
||||
virtual void tablet_set_current_driver(const String &p_driver){};
|
||||
virtual void tablet_set_current_driver(const String &p_driver) {};
|
||||
|
||||
virtual void process_events() = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -597,7 +597,7 @@ void GodotSoftBody3D::generate_bending_constraints(int p_distance) {
|
|||
const uint32_t adj_size = n * n;
|
||||
unsigned *adj = memnew_arr(unsigned, adj_size);
|
||||
|
||||
#define IDX(_x_, _y_) ((_y_)*n + (_x_))
|
||||
#define IDX(_x_, _y_) ((_y_) * n + (_x_))
|
||||
for (j = 0; j < n; ++j) {
|
||||
for (i = 0; i < n; ++i) {
|
||||
int idx_ij = j * n + i;
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public:
|
|||
|
||||
virtual RID shader_allocate() override { return RID(); }
|
||||
virtual void shader_initialize(RID p_rid) override {}
|
||||
virtual void shader_free(RID p_rid) override{};
|
||||
virtual void shader_free(RID p_rid) override {};
|
||||
|
||||
virtual void shader_set_code(RID p_shader, const String &p_code) override {}
|
||||
virtual void shader_set_path_hint(RID p_shader, const String &p_code) override {}
|
||||
|
|
@ -77,7 +77,7 @@ public:
|
|||
/* MATERIAL API */
|
||||
virtual RID material_allocate() override { return RID(); }
|
||||
virtual void material_initialize(RID p_rid) override {}
|
||||
virtual void material_free(RID p_rid) override{};
|
||||
virtual void material_free(RID p_rid) override {};
|
||||
|
||||
virtual void material_set_render_priority(RID p_material, int priority) override {}
|
||||
virtual void material_set_shader(RID p_shader_material, RID p_shader) override {}
|
||||
|
|
|
|||
|
|
@ -58,14 +58,14 @@ public:
|
|||
/* Canvas Texture API */
|
||||
|
||||
virtual RID canvas_texture_allocate() override { return RID(); };
|
||||
virtual void canvas_texture_initialize(RID p_rid) override{};
|
||||
virtual void canvas_texture_free(RID p_rid) override{};
|
||||
virtual void canvas_texture_initialize(RID p_rid) override {};
|
||||
virtual void canvas_texture_free(RID p_rid) override {};
|
||||
|
||||
virtual void canvas_texture_set_channel(RID p_canvas_texture, RS::CanvasTextureChannel p_channel, RID p_texture) override{};
|
||||
virtual void canvas_texture_set_shading_parameters(RID p_canvas_texture, const Color &p_base_color, float p_shininess) override{};
|
||||
virtual void canvas_texture_set_channel(RID p_canvas_texture, RS::CanvasTextureChannel p_channel, RID p_texture) override {};
|
||||
virtual void canvas_texture_set_shading_parameters(RID p_canvas_texture, const Color &p_base_color, float p_shininess) override {};
|
||||
|
||||
virtual void canvas_texture_set_texture_filter(RID p_item, RS::CanvasItemTextureFilter p_filter) override{};
|
||||
virtual void canvas_texture_set_texture_repeat(RID p_item, RS::CanvasItemTextureRepeat p_repeat) override{};
|
||||
virtual void canvas_texture_set_texture_filter(RID p_item, RS::CanvasItemTextureFilter p_filter) override {};
|
||||
virtual void canvas_texture_set_texture_repeat(RID p_item, RS::CanvasItemTextureRepeat p_repeat) override {};
|
||||
|
||||
/* Texture API */
|
||||
|
||||
|
|
@ -90,18 +90,18 @@ public:
|
|||
ERR_FAIL_COND(!t);
|
||||
t->image = p_image->duplicate();
|
||||
};
|
||||
virtual void texture_2d_layered_initialize(RID p_texture, const Vector<Ref<Image>> &p_layers, RS::TextureLayeredType p_layered_type) override{};
|
||||
virtual void texture_3d_initialize(RID p_texture, Image::Format, int p_width, int p_height, int p_depth, bool p_mipmaps, const Vector<Ref<Image>> &p_data) override{};
|
||||
virtual void texture_proxy_initialize(RID p_texture, RID p_base) override{}; //all slices, then all the mipmaps, must be coherent
|
||||
virtual void texture_2d_layered_initialize(RID p_texture, const Vector<Ref<Image>> &p_layers, RS::TextureLayeredType p_layered_type) override {};
|
||||
virtual void texture_3d_initialize(RID p_texture, Image::Format, int p_width, int p_height, int p_depth, bool p_mipmaps, const Vector<Ref<Image>> &p_data) override {};
|
||||
virtual void texture_proxy_initialize(RID p_texture, RID p_base) override {}; //all slices, then all the mipmaps, must be coherent
|
||||
|
||||
virtual void texture_2d_update(RID p_texture, const Ref<Image> &p_image, int p_layer = 0) override{};
|
||||
virtual void texture_3d_update(RID p_texture, const Vector<Ref<Image>> &p_data) override{};
|
||||
virtual void texture_proxy_update(RID p_proxy, RID p_base) override{};
|
||||
virtual void texture_2d_update(RID p_texture, const Ref<Image> &p_image, int p_layer = 0) override {};
|
||||
virtual void texture_3d_update(RID p_texture, const Vector<Ref<Image>> &p_data) override {};
|
||||
virtual void texture_proxy_update(RID p_proxy, RID p_base) override {};
|
||||
|
||||
//these two APIs can be used together or in combination with the others.
|
||||
virtual void texture_2d_placeholder_initialize(RID p_texture) override{};
|
||||
virtual void texture_2d_layered_placeholder_initialize(RID p_texture, RenderingServer::TextureLayeredType p_layered_type) override{};
|
||||
virtual void texture_3d_placeholder_initialize(RID p_texture) override{};
|
||||
virtual void texture_2d_placeholder_initialize(RID p_texture) override {};
|
||||
virtual void texture_2d_layered_placeholder_initialize(RID p_texture, RenderingServer::TextureLayeredType p_layered_type) override {};
|
||||
virtual void texture_3d_placeholder_initialize(RID p_texture) override {};
|
||||
|
||||
virtual Ref<Image> texture_2d_get(RID p_texture) const override {
|
||||
DummyTexture *t = texture_owner.get_or_null(p_texture);
|
||||
|
|
@ -112,18 +112,18 @@ public:
|
|||
virtual Vector<Ref<Image>> texture_3d_get(RID p_texture) const override { return Vector<Ref<Image>>(); };
|
||||
|
||||
virtual void texture_replace(RID p_texture, RID p_by_texture) override { texture_free(p_by_texture); };
|
||||
virtual void texture_set_size_override(RID p_texture, int p_width, int p_height) override{};
|
||||
virtual void texture_set_size_override(RID p_texture, int p_width, int p_height) override {};
|
||||
|
||||
virtual void texture_set_path(RID p_texture, const String &p_path) override{};
|
||||
virtual void texture_set_path(RID p_texture, const String &p_path) override {};
|
||||
virtual String texture_get_path(RID p_texture) const override { return String(); };
|
||||
|
||||
virtual void texture_set_detect_3d_callback(RID p_texture, RS::TextureDetectCallback p_callback, void *p_userdata) override{};
|
||||
virtual void texture_set_detect_normal_callback(RID p_texture, RS::TextureDetectCallback p_callback, void *p_userdata) override{};
|
||||
virtual void texture_set_detect_roughness_callback(RID p_texture, RS::TextureDetectRoughnessCallback p_callback, void *p_userdata) override{};
|
||||
virtual void texture_set_detect_3d_callback(RID p_texture, RS::TextureDetectCallback p_callback, void *p_userdata) override {};
|
||||
virtual void texture_set_detect_normal_callback(RID p_texture, RS::TextureDetectCallback p_callback, void *p_userdata) override {};
|
||||
virtual void texture_set_detect_roughness_callback(RID p_texture, RS::TextureDetectRoughnessCallback p_callback, void *p_userdata) override {};
|
||||
|
||||
virtual void texture_debug_usage(List<RS::TextureInfo> *r_info) override{};
|
||||
virtual void texture_debug_usage(List<RS::TextureInfo> *r_info) override {};
|
||||
|
||||
virtual void texture_set_force_redraw_if_visible(RID p_texture, bool p_enable) override{};
|
||||
virtual void texture_set_force_redraw_if_visible(RID p_texture, bool p_enable) override {};
|
||||
|
||||
virtual Size2 texture_size_with_proxy(RID p_proxy) override { return Size2(); };
|
||||
|
||||
|
|
@ -133,7 +133,7 @@ public:
|
|||
/* DECAL API */
|
||||
virtual RID decal_allocate() override { return RID(); }
|
||||
virtual void decal_initialize(RID p_rid) override {}
|
||||
virtual void decal_free(RID p_rid) override{};
|
||||
virtual void decal_free(RID p_rid) override {};
|
||||
|
||||
virtual void decal_set_size(RID p_decal, const Vector3 &p_size) override {}
|
||||
virtual void decal_set_texture(RID p_decal, RS::DecalTexture p_type, RID p_texture) override {}
|
||||
|
|
|
|||
|
|
@ -314,8 +314,8 @@ public:
|
|||
|
||||
int last_shadow_filter = -1;
|
||||
|
||||
virtual void configure(RenderSceneBuffersRD *p_render_buffers) override{};
|
||||
virtual void free_data() override{};
|
||||
virtual void configure(RenderSceneBuffersRD *p_render_buffers) override {};
|
||||
virtual void free_data() override {};
|
||||
|
||||
bool sync_gi_dependent_sets_validity(bool p_ensure_freed = false);
|
||||
|
||||
|
|
|
|||
|
|
@ -461,7 +461,7 @@ public:
|
|||
|
||||
RID get_voxel_gi_buffer();
|
||||
|
||||
virtual void configure(RenderSceneBuffersRD *p_render_buffers) override{};
|
||||
virtual void configure(RenderSceneBuffersRD *p_render_buffers) override {};
|
||||
virtual void free_data() override;
|
||||
};
|
||||
|
||||
|
|
@ -672,7 +672,7 @@ public:
|
|||
int32_t cascade_dynamic_light_count[SDFGI::MAX_CASCADES]; //used dynamically
|
||||
RID integrate_sky_uniform_set;
|
||||
|
||||
virtual void configure(RenderSceneBuffersRD *p_render_buffers) override{};
|
||||
virtual void configure(RenderSceneBuffersRD *p_render_buffers) override {};
|
||||
virtual void free_data() override;
|
||||
~SDFGI();
|
||||
|
||||
|
|
|
|||
|
|
@ -360,12 +360,12 @@ protected:
|
|||
virtual RID _render_buffers_get_normal_texture(Ref<RenderSceneBuffersRD> p_render_buffers) override;
|
||||
virtual RID _render_buffers_get_velocity_texture(Ref<RenderSceneBuffersRD> p_render_buffers) override;
|
||||
|
||||
virtual void environment_set_ssao_quality(RS::EnvironmentSSAOQuality p_quality, bool p_half_size, float p_adaptive_target, int p_blur_passes, float p_fadeout_from, float p_fadeout_to) override{};
|
||||
virtual void environment_set_ssil_quality(RS::EnvironmentSSILQuality p_quality, bool p_half_size, float p_adaptive_target, int p_blur_passes, float p_fadeout_from, float p_fadeout_to) override{};
|
||||
virtual void environment_set_ssr_roughness_quality(RS::EnvironmentSSRRoughnessQuality p_quality) override{};
|
||||
virtual void environment_set_ssao_quality(RS::EnvironmentSSAOQuality p_quality, bool p_half_size, float p_adaptive_target, int p_blur_passes, float p_fadeout_from, float p_fadeout_to) override {};
|
||||
virtual void environment_set_ssil_quality(RS::EnvironmentSSILQuality p_quality, bool p_half_size, float p_adaptive_target, int p_blur_passes, float p_fadeout_from, float p_fadeout_to) override {};
|
||||
virtual void environment_set_ssr_roughness_quality(RS::EnvironmentSSRRoughnessQuality p_quality) override {};
|
||||
|
||||
virtual void sub_surface_scattering_set_quality(RS::SubSurfaceScatteringQuality p_quality) override{};
|
||||
virtual void sub_surface_scattering_set_scale(float p_scale, float p_depth_scale) override{};
|
||||
virtual void sub_surface_scattering_set_quality(RS::SubSurfaceScatteringQuality p_quality) override {};
|
||||
virtual void sub_surface_scattering_set_scale(float p_scale, float p_depth_scale) override {};
|
||||
|
||||
/* Geometry instance */
|
||||
|
||||
|
|
|
|||
|
|
@ -204,9 +204,9 @@ public:
|
|||
|
||||
/* LIGHTING */
|
||||
|
||||
virtual void setup_added_reflection_probe(const Transform3D &p_transform, const Vector3 &p_half_size){};
|
||||
virtual void setup_added_light(const RS::LightType p_type, const Transform3D &p_transform, float p_radius, float p_spot_aperture){};
|
||||
virtual void setup_added_decal(const Transform3D &p_transform, const Vector3 &p_half_size){};
|
||||
virtual void setup_added_reflection_probe(const Transform3D &p_transform, const Vector3 &p_half_size) {};
|
||||
virtual void setup_added_light(const RS::LightType p_type, const Transform3D &p_transform, float p_radius, float p_spot_aperture) {};
|
||||
virtual void setup_added_decal(const Transform3D &p_transform, const Vector3 &p_half_size) {};
|
||||
|
||||
/* GI */
|
||||
|
||||
|
|
@ -278,7 +278,7 @@ public:
|
|||
RID render_buffers_get_default_voxel_gi_buffer();
|
||||
|
||||
virtual void base_uniforms_changed() = 0;
|
||||
virtual void update_uniform_sets(){};
|
||||
virtual void update_uniform_sets() {};
|
||||
|
||||
virtual void render_scene(const Ref<RenderSceneBuffers> &p_render_buffers, const CameraData *p_camera_data, const CameraData *p_prev_camera_data, const PagedArray<RenderGeometryInstance *> &p_instances, const PagedArray<RID> &p_lights, const PagedArray<RID> &p_reflection_probes, const PagedArray<RID> &p_voxel_gi_instances, const PagedArray<RID> &p_decals, const PagedArray<RID> &p_lightmaps, const PagedArray<RID> &p_fog_volumes, RID p_environment, RID p_camera_attributes, RID p_shadow_atlas, RID p_occluder_debug_tex, RID p_reflection_atlas, RID p_reflection_probe, int p_reflection_probe_pass, float p_screen_mesh_lod_threshold, const RenderShadowData *p_render_shadows, int p_render_shadow_count, const RenderSDFGIData *p_render_sdfgi_regions, int p_render_sdfgi_region_count, const RenderSDFGIUpdateData *p_sdfgi_update_data = nullptr, RenderingMethod::RenderInfo *r_render_info = nullptr) override;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,11 +27,10 @@ layout(location = 3) out vec2 pixel_size_interp;
|
|||
#endif
|
||||
|
||||
#ifdef MATERIAL_UNIFORMS_USED
|
||||
layout(set = 1, binding = 0, std140) uniform MaterialUniforms{
|
||||
|
||||
layout(set = 1, binding = 0, std140) uniform MaterialUniforms {
|
||||
#MATERIAL_UNIFORMS
|
||||
|
||||
} material;
|
||||
}
|
||||
material;
|
||||
#endif
|
||||
|
||||
#GLOBALS
|
||||
|
|
@ -224,11 +223,10 @@ layout(location = 3) in vec2 pixel_size_interp;
|
|||
layout(location = 0) out vec4 frag_color;
|
||||
|
||||
#ifdef MATERIAL_UNIFORMS_USED
|
||||
layout(set = 1, binding = 0, std140) uniform MaterialUniforms{
|
||||
|
||||
layout(set = 1, binding = 0, std140) uniform MaterialUniforms {
|
||||
#MATERIAL_UNIFORMS
|
||||
|
||||
} material;
|
||||
}
|
||||
material;
|
||||
#endif
|
||||
|
||||
vec2 screen_uv_to_sdf(vec2 p_uv) {
|
||||
|
|
|
|||
|
|
@ -119,9 +119,10 @@ layout(set = 0, binding = 3, std140) uniform DirectionalLights {
|
|||
directional_lights;
|
||||
|
||||
#ifdef MATERIAL_UNIFORMS_USED
|
||||
layout(set = 1, binding = 0, std140) uniform MaterialUniforms{
|
||||
layout(set = 1, binding = 0, std140) uniform MaterialUniforms {
|
||||
#MATERIAL_UNIFORMS
|
||||
} material;
|
||||
}
|
||||
material;
|
||||
#endif
|
||||
|
||||
layout(set = 2, binding = 0) uniform textureCube radiance;
|
||||
|
|
@ -258,9 +259,7 @@ void main() {
|
|||
#endif //USE_CUBEMAP_PASS
|
||||
|
||||
{
|
||||
|
||||
#CODE : SKY
|
||||
|
||||
}
|
||||
|
||||
frag_color.rgb = color;
|
||||
|
|
|
|||
|
|
@ -90,9 +90,10 @@ layout(r32ui, set = 1, binding = 4) uniform volatile uimage3D light_only_map;
|
|||
#endif
|
||||
|
||||
#ifdef MATERIAL_UNIFORMS_USED
|
||||
layout(set = 2, binding = 0, std140) uniform MaterialUniforms{
|
||||
layout(set = 2, binding = 0, std140) uniform MaterialUniforms {
|
||||
#MATERIAL_UNIFORMS
|
||||
} material;
|
||||
}
|
||||
material;
|
||||
#endif
|
||||
|
||||
#GLOBALS
|
||||
|
|
|
|||
|
|
@ -96,9 +96,10 @@ layout(location = 8) out vec4 prev_screen_position;
|
|||
#endif
|
||||
|
||||
#ifdef MATERIAL_UNIFORMS_USED
|
||||
layout(set = MATERIAL_UNIFORM_SET, binding = 0, std140) uniform MaterialUniforms{
|
||||
layout(set = MATERIAL_UNIFORM_SET, binding = 0, std140) uniform MaterialUniforms {
|
||||
#MATERIAL_UNIFORMS
|
||||
} material;
|
||||
}
|
||||
material;
|
||||
#endif
|
||||
|
||||
float global_time;
|
||||
|
|
@ -590,11 +591,10 @@ vec2 multiview_uv(vec2 uv) {
|
|||
#endif
|
||||
|
||||
#ifdef MATERIAL_UNIFORMS_USED
|
||||
layout(set = MATERIAL_UNIFORM_SET, binding = 0, std140) uniform MaterialUniforms{
|
||||
|
||||
layout(set = MATERIAL_UNIFORM_SET, binding = 0, std140) uniform MaterialUniforms {
|
||||
#MATERIAL_UNIFORMS
|
||||
|
||||
} material;
|
||||
}
|
||||
material;
|
||||
#endif
|
||||
|
||||
#GLOBALS
|
||||
|
|
|
|||
|
|
@ -92,11 +92,10 @@ layout(location = 6) mediump out vec3 binormal_interp;
|
|||
#endif
|
||||
|
||||
#ifdef MATERIAL_UNIFORMS_USED
|
||||
layout(set = MATERIAL_UNIFORM_SET, binding = 0, std140) uniform MaterialUniforms{
|
||||
|
||||
layout(set = MATERIAL_UNIFORM_SET, binding = 0, std140) uniform MaterialUniforms {
|
||||
#MATERIAL_UNIFORMS
|
||||
|
||||
} material;
|
||||
}
|
||||
material;
|
||||
#endif
|
||||
|
||||
#ifdef MODE_DUAL_PARABOLOID
|
||||
|
|
@ -558,11 +557,10 @@ vec2 multiview_uv(vec2 uv) {
|
|||
#endif
|
||||
|
||||
#ifdef MATERIAL_UNIFORMS_USED
|
||||
layout(set = MATERIAL_UNIFORM_SET, binding = 0, std140) uniform MaterialUniforms{
|
||||
|
||||
layout(set = MATERIAL_UNIFORM_SET, binding = 0, std140) uniform MaterialUniforms {
|
||||
#MATERIAL_UNIFORMS
|
||||
|
||||
} material;
|
||||
}
|
||||
material;
|
||||
#endif
|
||||
|
||||
#GLOBALS
|
||||
|
|
|
|||
|
|
@ -179,11 +179,10 @@ layout(set = 2, binding = 1) uniform texture2D height_field_texture;
|
|||
/* SET 3: MATERIAL */
|
||||
|
||||
#ifdef MATERIAL_UNIFORMS_USED
|
||||
layout(set = 3, binding = 0, std140) uniform MaterialUniforms{
|
||||
|
||||
layout(set = 3, binding = 0, std140) uniform MaterialUniforms {
|
||||
#MATERIAL_UNIFORMS
|
||||
|
||||
} material;
|
||||
}
|
||||
material;
|
||||
#endif
|
||||
|
||||
layout(push_constant, std430) uniform Params {
|
||||
|
|
|
|||
|
|
@ -133,10 +133,10 @@ public:
|
|||
virtual RID get_velocity_texture(); /* obtain velocity output texture (if applicable, used for spacewarp) */
|
||||
|
||||
virtual void process() = 0;
|
||||
virtual void pre_render(){};
|
||||
virtual void pre_render() {};
|
||||
virtual bool pre_draw_viewport(RID p_render_target) { return true; }; /* inform XR interface we are about to start our viewport draw process */
|
||||
virtual Vector<BlitToScreen> post_draw_viewport(RID p_render_target, const Rect2 &p_screen_rect) = 0; /* inform XR interface we finished our viewport draw process */
|
||||
virtual void end_frame(){};
|
||||
virtual void end_frame() {};
|
||||
|
||||
/** passthrough **/
|
||||
|
||||
|
|
|
|||
|
|
@ -161,11 +161,11 @@ int register_test_command(String p_command, TestFunc p_function);
|
|||
MessageQueue::get_singleton()->flush(); \
|
||||
}
|
||||
|
||||
#define _UPDATE_EVENT_MODIFERS(m_event, m_modifers) \
|
||||
m_event->set_shift_pressed(((m_modifers)&KeyModifierMask::SHIFT) != Key::NONE); \
|
||||
m_event->set_alt_pressed(((m_modifers)&KeyModifierMask::ALT) != Key::NONE); \
|
||||
m_event->set_ctrl_pressed(((m_modifers)&KeyModifierMask::CTRL) != Key::NONE); \
|
||||
m_event->set_meta_pressed(((m_modifers)&KeyModifierMask::META) != Key::NONE);
|
||||
#define _UPDATE_EVENT_MODIFERS(m_event, m_modifers) \
|
||||
m_event->set_shift_pressed(((m_modifers) & KeyModifierMask::SHIFT) != Key::NONE); \
|
||||
m_event->set_alt_pressed(((m_modifers) & KeyModifierMask::ALT) != Key::NONE); \
|
||||
m_event->set_ctrl_pressed(((m_modifers) & KeyModifierMask::CTRL) != Key::NONE); \
|
||||
m_event->set_meta_pressed(((m_modifers) & KeyModifierMask::META) != Key::NONE);
|
||||
|
||||
#define _CREATE_GUI_MOUSE_EVENT(m_screen_pos, m_input, m_mask, m_modifers) \
|
||||
Ref<InputEventMouseButton> event; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue