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 GLTF_ACCESSOR_H
|
||||
#define GLTF_ACCESSOR_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -133,5 +132,3 @@ public:
|
|||
|
||||
VARIANT_ENUM_CAST(GLTFAccessor::GLTFAccessorType);
|
||||
VARIANT_ENUM_CAST(GLTFAccessor::GLTFComponentType);
|
||||
|
||||
#endif // GLTF_ACCESSOR_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_ANIMATION_H
|
||||
#define GLTF_ANIMATION_H
|
||||
#pragma once
|
||||
|
||||
#include "scene/resources/animation.h"
|
||||
|
||||
|
|
@ -86,5 +85,3 @@ public:
|
|||
|
||||
GLTFAnimation();
|
||||
};
|
||||
|
||||
#endif // GLTF_ANIMATION_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_BUFFER_VIEW_H
|
||||
#define GLTF_BUFFER_VIEW_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -80,5 +79,3 @@ public:
|
|||
|
||||
Vector<uint8_t> load_buffer_view_data(const Ref<GLTFState> p_state) const;
|
||||
};
|
||||
|
||||
#endif // GLTF_BUFFER_VIEW_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_CAMERA_H
|
||||
#define GLTF_CAMERA_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/resource.h"
|
||||
|
||||
|
|
@ -74,5 +73,3 @@ public:
|
|||
static Ref<GLTFCamera> from_dictionary(const Dictionary p_dictionary);
|
||||
virtual Dictionary to_dictionary() const;
|
||||
};
|
||||
|
||||
#endif // GLTF_CAMERA_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_MESH_H
|
||||
#define GLTF_MESH_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -60,5 +59,3 @@ public:
|
|||
Variant get_additional_data(const StringName &p_extension_name);
|
||||
void set_additional_data(const StringName &p_extension_name, Variant p_additional_data);
|
||||
};
|
||||
|
||||
#endif // GLTF_MESH_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_NODE_H
|
||||
#define GLTF_NODE_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -108,5 +107,3 @@ public:
|
|||
|
||||
NodePath get_scene_node_path(Ref<GLTFState> p_state, bool p_handle_skeletons = true);
|
||||
};
|
||||
|
||||
#endif // GLTF_NODE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_OBJECT_MODEL_PROPERTY_H
|
||||
#define GLTF_OBJECT_MODEL_PROPERTY_H
|
||||
#pragma once
|
||||
|
||||
#include "core/math/expression.h"
|
||||
#include "core/variant/typed_array.h"
|
||||
|
|
@ -100,5 +99,3 @@ public:
|
|||
};
|
||||
|
||||
VARIANT_ENUM_CAST(GLTFObjectModelProperty::GLTFObjectModelType);
|
||||
|
||||
#endif // GLTF_OBJECT_MODEL_PROPERTY_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_SKELETON_H
|
||||
#define GLTF_SKELETON_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -103,5 +102,3 @@ public:
|
|||
|
||||
int32_t get_bone_attachment_count();
|
||||
};
|
||||
|
||||
#endif // GLTF_SKELETON_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_SKIN_H
|
||||
#define GLTF_SKIN_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -116,5 +115,3 @@ public:
|
|||
Dictionary to_dictionary();
|
||||
Error from_dictionary(const Dictionary &dict);
|
||||
};
|
||||
|
||||
#endif // GLTF_SKIN_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_TEXTURE_H
|
||||
#define GLTF_TEXTURE_H
|
||||
#pragma once
|
||||
|
||||
#include "../gltf_defines.h"
|
||||
|
||||
|
|
@ -51,5 +50,3 @@ public:
|
|||
GLTFTextureSamplerIndex get_sampler() const;
|
||||
void set_sampler(GLTFTextureSamplerIndex val);
|
||||
};
|
||||
|
||||
#endif // GLTF_TEXTURE_H
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLTF_TEXTURE_SAMPLER_H
|
||||
#define GLTF_TEXTURE_SAMPLER_H
|
||||
#pragma once
|
||||
|
||||
#include "scene/resources/material.h"
|
||||
|
||||
|
|
@ -158,5 +157,3 @@ private:
|
|||
|
||||
VARIANT_ENUM_CAST(GLTFTextureSampler::FilterMode);
|
||||
VARIANT_ENUM_CAST(GLTFTextureSampler::WrapMode);
|
||||
|
||||
#endif // GLTF_TEXTURE_SAMPLER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue