mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Style: Replace header guards with #pragma once
This commit is contained in:
parent
96fdaa616b
commit
324512e11c
1746 changed files with 1767 additions and 6920 deletions
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef CAMERA_ATTRIBUTES_STORAGE_H
|
||||
#define CAMERA_ATTRIBUTES_STORAGE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/templates/rid_owner.h"
|
||||
#include "servers/rendering_server.h"
|
||||
|
|
@ -125,5 +124,3 @@ public:
|
|||
return dof_blur_use_jitter;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CAMERA_ATTRIBUTES_STORAGE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef COMPOSITOR_STORAGE_H
|
||||
#define COMPOSITOR_STORAGE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/templates/rid_owner.h"
|
||||
#include "servers/rendering_server.h"
|
||||
|
|
@ -96,5 +95,3 @@ public:
|
|||
void compositor_set_compositor_effects(RID p_compositor, const Vector<RID> &p_effects);
|
||||
Vector<RID> compositor_get_compositor_effects(RID p_compositor, RS::CompositorEffectCallbackType p_callback_type = RS::COMPOSITOR_EFFECT_CALLBACK_TYPE_ANY, bool p_enabled_only = true) const;
|
||||
};
|
||||
|
||||
#endif // COMPOSITOR_STORAGE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef ENVIRONMENT_STORAGE_H
|
||||
#define ENVIRONMENT_STORAGE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/templates/rid_owner.h"
|
||||
#include "servers/rendering_server.h"
|
||||
|
|
@ -305,5 +304,3 @@ public:
|
|||
bool environment_get_use_1d_color_correction(RID p_env) const;
|
||||
RID environment_get_color_correction(RID p_env) const;
|
||||
};
|
||||
|
||||
#endif // ENVIRONMENT_STORAGE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef LIGHT_STORAGE_H
|
||||
#define LIGHT_STORAGE_H
|
||||
#pragma once
|
||||
|
||||
#include "render_scene_buffers.h"
|
||||
#include "servers/rendering_server.h"
|
||||
|
|
@ -201,5 +200,3 @@ public:
|
|||
virtual int get_directional_light_shadow_size(RID p_light_instance) = 0;
|
||||
virtual void set_directional_shadow_count(int p_count) = 0;
|
||||
};
|
||||
|
||||
#endif // LIGHT_STORAGE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MATERIAL_STORAGE_H
|
||||
#define MATERIAL_STORAGE_H
|
||||
#pragma once
|
||||
|
||||
#include "servers/rendering_server.h"
|
||||
#include "utilities.h"
|
||||
|
|
@ -99,5 +98,3 @@ public:
|
|||
|
||||
virtual void material_update_dependency(RID p_material, DependencyTracker *p_instance) = 0;
|
||||
};
|
||||
|
||||
#endif // MATERIAL_STORAGE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MESH_STORAGE_H
|
||||
#define MESH_STORAGE_H
|
||||
#pragma once
|
||||
|
||||
#include "servers/rendering_server.h"
|
||||
#include "utilities.h"
|
||||
|
|
@ -227,5 +226,3 @@ public:
|
|||
void update_interpolation_tick(bool p_process = true);
|
||||
void update_interpolation_frame(bool p_process = true);
|
||||
};
|
||||
|
||||
#endif // MESH_STORAGE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef PARTICLES_STORAGE_H
|
||||
#define PARTICLES_STORAGE_H
|
||||
#pragma once
|
||||
|
||||
#include "servers/rendering_server.h"
|
||||
|
||||
|
|
@ -129,5 +128,3 @@ public:
|
|||
virtual void particles_collision_instance_set_transform(RID p_collision_instance, const Transform3D &p_transform) = 0;
|
||||
virtual void particles_collision_instance_set_active(RID p_collision_instance, bool p_active) = 0;
|
||||
};
|
||||
|
||||
#endif // PARTICLES_STORAGE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDER_DATA_H
|
||||
#define RENDER_DATA_H
|
||||
#pragma once
|
||||
|
||||
#include "core/object/object.h"
|
||||
#include "render_scene_buffers.h"
|
||||
|
|
@ -66,5 +65,3 @@ protected:
|
|||
GDVIRTUAL0RC(RID, _get_environment)
|
||||
GDVIRTUAL0RC(RID, _get_camera_attributes)
|
||||
};
|
||||
|
||||
#endif // RENDER_DATA_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDER_SCENE_BUFFERS_H
|
||||
#define RENDER_SCENE_BUFFERS_H
|
||||
#pragma once
|
||||
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "servers/rendering_server.h"
|
||||
|
|
@ -139,5 +138,3 @@ public:
|
|||
virtual void set_anisotropic_filtering_level(RS::ViewportAnisotropicFiltering p_anisotropic_filtering_level) override;
|
||||
virtual void set_use_debanding(bool p_use_debanding) override;
|
||||
};
|
||||
|
||||
#endif // RENDER_SCENE_BUFFERS_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDER_SCENE_DATA_H
|
||||
#define RENDER_SCENE_DATA_H
|
||||
#pragma once
|
||||
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/object/gdvirtual.gen.inc"
|
||||
|
|
@ -78,5 +77,3 @@ public:
|
|||
|
||||
GDVIRTUAL0RC(RID, _get_uniform_buffer)
|
||||
};
|
||||
|
||||
#endif // RENDER_SCENE_DATA_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEXTURE_STORAGE_H
|
||||
#define TEXTURE_STORAGE_H
|
||||
#pragma once
|
||||
|
||||
#include "servers/rendering_server.h"
|
||||
|
||||
|
|
@ -194,5 +193,3 @@ public:
|
|||
virtual void render_target_set_velocity_target_size(RID p_render_target, const Size2i &p_target_size) = 0;
|
||||
virtual Size2i render_target_get_velocity_target_size(RID p_render_target) const = 0;
|
||||
};
|
||||
|
||||
#endif // TEXTURE_STORAGE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDERER_UTILITIES_H
|
||||
#define RENDERER_UTILITIES_H
|
||||
#pragma once
|
||||
|
||||
#include "servers/rendering_server.h"
|
||||
|
||||
|
|
@ -187,5 +186,3 @@ public:
|
|||
virtual uint32_t get_maximum_shader_varyings() const = 0;
|
||||
virtual uint64_t get_maximum_uniform_buffer_size() const = 0;
|
||||
};
|
||||
|
||||
#endif // RENDERER_UTILITIES_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef VARIANT_CONVERTERS_H
|
||||
#define VARIANT_CONVERTERS_H
|
||||
#pragma once
|
||||
|
||||
#include "core/error/error_macros.h"
|
||||
#include "core/variant/array.h"
|
||||
|
|
@ -319,5 +318,3 @@ void write_array_std140(const Vector<From> &p_values, To *p_write, int p_array_s
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // VARIANT_CONVERTERS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue