Style: Replace header guards with #pragma once
This commit is contained in:
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef AUDIO_DRIVER_ALSA_H
|
||||
#define AUDIO_DRIVER_ALSA_H
|
||||
#pragma once
|
||||
|
||||
#ifdef ALSA_ENABLED
|
||||
|
||||
@ -95,5 +94,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // ALSA_ENABLED
|
||||
|
||||
#endif // AUDIO_DRIVER_ALSA_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MIDI_DRIVER_ALSAMIDI_H
|
||||
#define MIDI_DRIVER_ALSAMIDI_H
|
||||
#pragma once
|
||||
|
||||
#ifdef ALSAMIDI_ENABLED
|
||||
|
||||
@ -78,5 +77,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // ALSAMIDI_ENABLED
|
||||
|
||||
#endif // MIDI_DRIVER_ALSAMIDI_H
|
||||
|
||||
@ -28,6 +28,8 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "core/input/input.h"
|
||||
|
||||
#define Key _QKey
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef AUDIO_DRIVER_COREAUDIO_H
|
||||
#define AUDIO_DRIVER_COREAUDIO_H
|
||||
#pragma once
|
||||
|
||||
#ifdef COREAUDIO_ENABLED
|
||||
|
||||
@ -126,5 +125,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // COREAUDIO_ENABLED
|
||||
|
||||
#endif // AUDIO_DRIVER_COREAUDIO_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MIDI_DRIVER_COREMIDI_H
|
||||
#define MIDI_DRIVER_COREMIDI_H
|
||||
#pragma once
|
||||
|
||||
#ifdef COREMIDI_ENABLED
|
||||
|
||||
@ -67,5 +66,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // COREMIDI_ENABLED
|
||||
|
||||
#endif // MIDI_DRIVER_COREMIDI_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef D3D12_GODOT_NIR_BRIDGE_H
|
||||
#define D3D12_GODOT_NIR_BRIDGE_H
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@ -56,5 +55,3 @@ typedef struct GodotNirCallbacks {
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // D3D12_GODOT_NIR_BRIDGE_H
|
||||
|
||||
@ -28,12 +28,9 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef DXIL_HASH_H
|
||||
#define DXIL_HASH_H
|
||||
#pragma once
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
void compute_dxil_hash(const BYTE *pData, UINT byteCount, BYTE *pOutHash);
|
||||
|
||||
#endif // DXIL_HASH_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDERING_CONTEXT_DRIVER_D3D12_H
|
||||
#define RENDERING_CONTEXT_DRIVER_D3D12_H
|
||||
#pragma once
|
||||
|
||||
#include "core/error/error_list.h"
|
||||
#include "core/os/mutex.h"
|
||||
@ -146,5 +145,3 @@ public:
|
||||
RenderingContextDriverD3D12();
|
||||
virtual ~RenderingContextDriverD3D12() override;
|
||||
};
|
||||
|
||||
#endif // RENDERING_CONTEXT_DRIVER_D3D12_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDERING_DEVICE_DRIVER_D3D12_H
|
||||
#define RENDERING_DEVICE_DRIVER_D3D12_H
|
||||
#pragma once
|
||||
|
||||
#include "core/templates/hash_map.h"
|
||||
#include "core/templates/paged_allocator.h"
|
||||
@ -1036,5 +1035,3 @@ public:
|
||||
RenderingDeviceDriverD3D12(RenderingContextDriverD3D12 *p_context_driver);
|
||||
virtual ~RenderingDeviceDriverD3D12();
|
||||
};
|
||||
|
||||
#endif // RENDERING_DEVICE_DRIVER_D3D12_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef EGL_MANAGER_H
|
||||
#define EGL_MANAGER_H
|
||||
#pragma once
|
||||
|
||||
#ifdef EGL_ENABLED
|
||||
|
||||
@ -119,5 +118,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // EGL_ENABLED
|
||||
|
||||
#endif // EGL_MANAGER_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef COPY_EFFECTS_GLES3_H
|
||||
#define COPY_EFFECTS_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -77,5 +76,3 @@ public:
|
||||
} //namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // COPY_EFFECTS_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef CUBEMAP_FILTER_GLES3_H
|
||||
#define CUBEMAP_FILTER_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -66,5 +65,3 @@ public:
|
||||
} //namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // CUBEMAP_FILTER_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef FEED_EFFECTS_GLES3_H
|
||||
#define FEED_EFFECTS_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -65,5 +64,3 @@ private:
|
||||
} // namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // FEED_EFFECTS_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GLOW_GLES3_H
|
||||
#define GLOW_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -85,5 +84,3 @@ public:
|
||||
} //namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // GLOW_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef POST_EFFECTS_GLES3_H
|
||||
#define POST_EFFECTS_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -65,5 +64,3 @@ public:
|
||||
} //namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // POST_EFFECTS_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef FOG_GLES3_H
|
||||
#define FOG_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -55,5 +54,3 @@ public:
|
||||
} // namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // FOG_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GI_GLES3_H
|
||||
#define GI_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -87,5 +86,3 @@ public:
|
||||
}; // namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // GI_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RASTERIZER_CANVAS_GLES3_H
|
||||
#define RASTERIZER_CANVAS_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -388,5 +387,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // RASTERIZER_CANVAS_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RASTERIZER_GLES3_H
|
||||
#define RASTERIZER_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -141,5 +140,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // RASTERIZER_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RASTERIZER_SCENE_GLES3_H
|
||||
#define RASTERIZER_SCENE_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -879,5 +878,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // RASTERIZER_SCENE_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef SHADER_GLES3_H
|
||||
#define SHADER_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#include "core/math/projection.h"
|
||||
#include "core/os/mutex.h"
|
||||
@ -258,5 +257,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // SHADER_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef CONFIG_GLES3_H
|
||||
#define CONFIG_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -123,5 +122,3 @@ public:
|
||||
} // namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // CONFIG_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef LIGHT_STORAGE_GLES3_H
|
||||
#define LIGHT_STORAGE_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -909,5 +908,3 @@ public:
|
||||
} // namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // LIGHT_STORAGE_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MATERIAL_STORAGE_GLES3_H
|
||||
#define MATERIAL_STORAGE_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -634,5 +633,3 @@ public:
|
||||
} // namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // MATERIAL_STORAGE_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MESH_STORAGE_GLES3_H
|
||||
#define MESH_STORAGE_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -604,5 +603,3 @@ public:
|
||||
} // namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // MESH_STORAGE_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef PARTICLES_STORAGE_GLES3_H
|
||||
#define PARTICLES_STORAGE_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -460,5 +459,3 @@ public:
|
||||
} // namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // PARTICLES_STORAGE_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDER_SCENE_BUFFERS_GLES3_H
|
||||
#define RENDER_SCENE_BUFFERS_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -164,5 +163,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // RENDER_SCENE_BUFFERS_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEXTURE_STORAGE_GLES3_H
|
||||
#define TEXTURE_STORAGE_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -730,5 +729,3 @@ inline String TextureStorage::get_framebuffer_error(GLenum p_status) {
|
||||
} // namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // TEXTURE_STORAGE_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef UTILITIES_GLES3_H
|
||||
#define UTILITIES_GLES3_H
|
||||
#pragma once
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
||||
@ -233,5 +232,3 @@ public:
|
||||
} // namespace GLES3
|
||||
|
||||
#endif // GLES3_ENABLED
|
||||
|
||||
#endif // UTILITIES_GLES3_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef INFLECTION_MAP_H
|
||||
#define INFLECTION_MAP_H
|
||||
#pragma once
|
||||
|
||||
#include "core/templates/hash_map.h"
|
||||
#include "core/templates/local_vector.h"
|
||||
@ -121,5 +120,3 @@ protected:
|
||||
HashMap<KeyType, IndexValue> _inflection_indexes;
|
||||
IndexValue _linear_indexes[LinearCount];
|
||||
};
|
||||
|
||||
#endif // INFLECTION_MAP_H
|
||||
|
||||
@ -28,6 +28,8 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* Portions of this code were derived from MoltenVK. */
|
||||
@ -48,9 +50,6 @@
|
||||
/* permissions and limitations under the License. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef METAL_DEVICE_PROPERTIES_H
|
||||
#define METAL_DEVICE_PROPERTIES_H
|
||||
|
||||
#import "servers/rendering/rendering_device.h"
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
@ -153,5 +152,3 @@ public:
|
||||
private:
|
||||
static const SampleCount sample_count[RenderingDevice::TextureSamples::TEXTURE_SAMPLES_MAX];
|
||||
};
|
||||
|
||||
#endif // METAL_DEVICE_PROPERTIES_H
|
||||
|
||||
@ -28,6 +28,8 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* Portions of this code were derived from MoltenVK. */
|
||||
@ -48,9 +50,6 @@
|
||||
/* permissions and limitations under the License. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef METAL_OBJECTS_H
|
||||
#define METAL_OBJECTS_H
|
||||
|
||||
#import "metal_device_properties.h"
|
||||
#import "metal_utils.h"
|
||||
#import "pixel_formats.h"
|
||||
@ -975,5 +974,3 @@ auto release(RDD::ID p_id) {
|
||||
}
|
||||
|
||||
} // namespace rid
|
||||
|
||||
#endif // METAL_OBJECTS_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef METAL_UTILS_H
|
||||
#define METAL_UTILS_H
|
||||
#pragma once
|
||||
|
||||
#import <os/log.h>
|
||||
|
||||
@ -101,5 +100,3 @@ private:
|
||||
extern os_log_t LOG_DRIVER;
|
||||
// Used for dynamic tracing.
|
||||
extern os_log_t LOG_INTERVALS;
|
||||
|
||||
#endif // METAL_UTILS_H
|
||||
|
||||
@ -28,6 +28,8 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
/**************************************************************************/
|
||||
/* */
|
||||
/* Portions of this code were derived from MoltenVK. */
|
||||
@ -48,9 +50,6 @@
|
||||
/* permissions and limitations under the License. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef PIXEL_FORMATS_H
|
||||
#define PIXEL_FORMATS_H
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
|
||||
@ -409,5 +408,3 @@ protected:
|
||||
};
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#endif // PIXEL_FORMATS_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDERING_CONTEXT_DRIVER_METAL_H
|
||||
#define RENDERING_CONTEXT_DRIVER_METAL_H
|
||||
#pragma once
|
||||
|
||||
#ifdef METAL_ENABLED
|
||||
|
||||
@ -143,5 +142,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // METAL_ENABLED
|
||||
|
||||
#endif // RENDERING_CONTEXT_DRIVER_METAL_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDERING_DEVICE_DRIVER_METAL_H
|
||||
#define RENDERING_DEVICE_DRIVER_METAL_H
|
||||
#pragma once
|
||||
|
||||
#import "metal_objects.h"
|
||||
|
||||
@ -444,5 +443,3 @@ public:
|
||||
RenderingDeviceDriverMetal(RenderingContextDriverMetal *p_context_driver);
|
||||
~RenderingDeviceDriverMetal();
|
||||
};
|
||||
|
||||
#endif // RENDERING_DEVICE_DRIVER_METAL_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef IMAGE_LOADER_PNG_H
|
||||
#define IMAGE_LOADER_PNG_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/image_loader.h"
|
||||
|
||||
@ -45,5 +44,3 @@ public:
|
||||
virtual void get_recognized_extensions(List<String> *p_extensions) const;
|
||||
ImageLoaderPNG();
|
||||
};
|
||||
|
||||
#endif // IMAGE_LOADER_PNG_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef PNG_DRIVER_COMMON_H
|
||||
#define PNG_DRIVER_COMMON_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/image.h"
|
||||
|
||||
@ -42,5 +41,3 @@ Error png_to_image(const uint8_t *p_source, size_t p_size, bool p_force_linear,
|
||||
// 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 // PNG_DRIVER_COMMON_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RESOURCE_SAVER_PNG_H
|
||||
#define RESOURCE_SAVER_PNG_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/image.h"
|
||||
#include "core/io/resource_saver.h"
|
||||
@ -45,5 +44,3 @@ public:
|
||||
|
||||
ResourceSaverPNG();
|
||||
};
|
||||
|
||||
#endif // RESOURCE_SAVER_PNG_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef AUDIO_DRIVER_PULSEAUDIO_H
|
||||
#define AUDIO_DRIVER_PULSEAUDIO_H
|
||||
#pragma once
|
||||
|
||||
#ifdef PULSEAUDIO_ENABLED
|
||||
|
||||
@ -128,5 +127,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // PULSEAUDIO_ENABLED
|
||||
|
||||
#endif // AUDIO_DRIVER_PULSEAUDIO_H
|
||||
|
||||
@ -28,13 +28,10 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef REGISTER_DRIVER_TYPES_H
|
||||
#define REGISTER_DRIVER_TYPES_H
|
||||
#pragma once
|
||||
|
||||
void register_core_driver_types();
|
||||
void unregister_core_driver_types();
|
||||
|
||||
void register_driver_types();
|
||||
void unregister_driver_types();
|
||||
|
||||
#endif // REGISTER_DRIVER_TYPES_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef DIR_ACCESS_UNIX_H
|
||||
#define DIR_ACCESS_UNIX_H
|
||||
#pragma once
|
||||
|
||||
#if defined(UNIX_ENABLED)
|
||||
|
||||
@ -96,5 +95,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // UNIX_ENABLED
|
||||
|
||||
#endif // DIR_ACCESS_UNIX_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef FILE_ACCESS_UNIX_H
|
||||
#define FILE_ACCESS_UNIX_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/file_access.h"
|
||||
#include "core/os/memory.h"
|
||||
@ -96,5 +95,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // UNIX_ENABLED
|
||||
|
||||
#endif // FILE_ACCESS_UNIX_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef FILE_ACCESS_UNIX_PIPE_H
|
||||
#define FILE_ACCESS_UNIX_PIPE_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/file_access.h"
|
||||
#include "core/os/memory.h"
|
||||
@ -91,5 +90,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // UNIX_ENABLED
|
||||
|
||||
#endif // FILE_ACCESS_UNIX_PIPE_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef IP_UNIX_H
|
||||
#define IP_UNIX_H
|
||||
#pragma once
|
||||
|
||||
#if defined(UNIX_ENABLED) && !defined(UNIX_SOCKET_UNAVAILABLE)
|
||||
|
||||
@ -50,5 +49,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // UNIX_ENABLED
|
||||
|
||||
#endif // IP_UNIX_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef NET_SOCKET_UNIX_H
|
||||
#define NET_SOCKET_UNIX_H
|
||||
#pragma once
|
||||
|
||||
#if defined(UNIX_ENABLED) && !defined(UNIX_SOCKET_UNAVAILABLE)
|
||||
|
||||
@ -98,5 +97,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // UNIX_ENABLED && !UNIX_SOCKET_UNAVAILABLE
|
||||
|
||||
#endif // NET_SOCKET_UNIX_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef OS_UNIX_H
|
||||
#define OS_UNIX_H
|
||||
#pragma once
|
||||
|
||||
#ifdef UNIX_ENABLED
|
||||
|
||||
@ -116,5 +115,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // UNIX_ENABLED
|
||||
|
||||
#endif // OS_UNIX_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef SYSLOG_LOGGER_H
|
||||
#define SYSLOG_LOGGER_H
|
||||
#pragma once
|
||||
|
||||
#ifdef UNIX_ENABLED
|
||||
|
||||
@ -44,5 +43,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // UNIX_ENABLED
|
||||
|
||||
#endif // SYSLOG_LOGGER_H
|
||||
|
||||
@ -28,9 +28,6 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef THREAD_POSIX_H
|
||||
#define THREAD_POSIX_H
|
||||
#pragma once
|
||||
|
||||
void init_thread_posix();
|
||||
|
||||
#endif // THREAD_POSIX_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef GODOT_VULKAN_H
|
||||
#define GODOT_VULKAN_H
|
||||
#pragma once
|
||||
|
||||
#ifdef USE_VOLK
|
||||
#include <volk.h>
|
||||
@ -38,5 +37,3 @@
|
||||
#define VK_NO_STDINT_H
|
||||
#include <vulkan/vulkan.h>
|
||||
#endif
|
||||
|
||||
#endif // GODOT_VULKAN_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDERING_CONTEXT_DRIVER_VULKAN_H
|
||||
#define RENDERING_CONTEXT_DRIVER_VULKAN_H
|
||||
#pragma once
|
||||
|
||||
#ifdef VULKAN_ENABLED
|
||||
|
||||
@ -206,5 +205,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // VULKAN_ENABLED
|
||||
|
||||
#endif // RENDERING_CONTEXT_DRIVER_VULKAN_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef RENDERING_DEVICE_DRIVER_VULKAN_H
|
||||
#define RENDERING_DEVICE_DRIVER_VULKAN_H
|
||||
#pragma once
|
||||
|
||||
#include "core/templates/hash_map.h"
|
||||
#include "core/templates/paged_allocator.h"
|
||||
@ -720,5 +719,3 @@ public:
|
||||
};
|
||||
|
||||
using VKC = RenderingContextDriverVulkan;
|
||||
|
||||
#endif // RENDERING_DEVICE_DRIVER_VULKAN_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef VULKAN_HOOKS_H
|
||||
#define VULKAN_HOOKS_H
|
||||
#pragma once
|
||||
|
||||
#include "drivers/vulkan/godot_vulkan.h"
|
||||
|
||||
@ -46,5 +45,3 @@ public:
|
||||
virtual void set_direct_queue_family_and_index(uint32_t p_queue_family_index, uint32_t p_queue_index) = 0;
|
||||
static VulkanHooks *get_singleton() { return singleton; }
|
||||
};
|
||||
|
||||
#endif // VULKAN_HOOKS_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef AUDIO_DRIVER_WASAPI_H
|
||||
#define AUDIO_DRIVER_WASAPI_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WASAPI_ENABLED
|
||||
|
||||
@ -123,5 +122,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // WASAPI_ENABLED
|
||||
|
||||
#endif // AUDIO_DRIVER_WASAPI_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef DIR_ACCESS_WINDOWS_H
|
||||
#define DIR_ACCESS_WINDOWS_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
|
||||
@ -91,5 +90,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // WINDOWS_ENABLED
|
||||
|
||||
#endif // DIR_ACCESS_WINDOWS_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef FILE_ACCESS_WINDOWS_H
|
||||
#define FILE_ACCESS_WINDOWS_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
|
||||
@ -98,5 +97,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // WINDOWS_ENABLED
|
||||
|
||||
#endif // FILE_ACCESS_WINDOWS_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef FILE_ACCESS_WINDOWS_PIPE_H
|
||||
#define FILE_ACCESS_WINDOWS_PIPE_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
|
||||
@ -90,5 +89,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // WINDOWS_ENABLED
|
||||
|
||||
#endif // FILE_ACCESS_WINDOWS_PIPE_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef IP_WINDOWS_H
|
||||
#define IP_WINDOWS_H
|
||||
#pragma once
|
||||
|
||||
#if defined(WINDOWS_ENABLED)
|
||||
|
||||
@ -50,5 +49,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // WINDOWS_ENABLED
|
||||
|
||||
#endif // IP_WINDOWS_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef NET_SOCKET_WINSOCK_H
|
||||
#define NET_SOCKET_WINSOCK_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
|
||||
@ -98,5 +97,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // WINDOWS_ENABLED
|
||||
|
||||
#endif // NET_SOCKET_WINSOCK_H
|
||||
|
||||
@ -28,13 +28,10 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef THREAD_WINDOWS_H
|
||||
#define THREAD_WINDOWS_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
|
||||
void init_thread_win();
|
||||
|
||||
#endif // WINDOWS_ENABLED
|
||||
|
||||
#endif // THREAD_WINDOWS_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef MIDI_DRIVER_WINMIDI_H
|
||||
#define MIDI_DRIVER_WINMIDI_H
|
||||
#pragma once
|
||||
|
||||
#ifdef WINMIDI_ENABLED
|
||||
|
||||
@ -56,5 +55,3 @@ public:
|
||||
};
|
||||
|
||||
#endif // WINMIDI_ENABLED
|
||||
|
||||
#endif // MIDI_DRIVER_WINMIDI_H
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef AUDIO_DRIVER_XAUDIO2_H
|
||||
#define AUDIO_DRIVER_XAUDIO2_H
|
||||
#pragma once
|
||||
|
||||
#include "core/os/mutex.h"
|
||||
#include "core/os/thread.h"
|
||||
@ -108,5 +107,3 @@ public:
|
||||
AudioDriverXAudio2();
|
||||
~AudioDriverXAudio2() {}
|
||||
};
|
||||
|
||||
#endif // AUDIO_DRIVER_XAUDIO2_H
|
||||
|
||||
Reference in New Issue
Block a user