Apply header guard check

This commit is contained in:
Jérôme Leclercq
2021-10-26 15:52:46 +02:00
parent b85f6b68ac
commit 93ec196dc4
476 changed files with 1414 additions and 1327 deletions

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_COMMANDBUFFER_HPP
#define NAZARA_COMMANDBUFFER_HPP
#ifndef NAZARA_RENDERER_COMMANDBUFFER_HPP
#define NAZARA_RENDERER_COMMANDBUFFER_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Renderer/Config.hpp>
@@ -44,4 +44,4 @@ namespace Nz
#include <Nazara/Renderer/CommandBuffer.inl>
#endif // NAZARA_COMMANDBUFFER_HPP
#endif // NAZARA_RENDERER_COMMANDBUFFER_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_COMMANDBUFFERBUILDER_HPP
#define NAZARA_COMMANDBUFFERBUILDER_HPP
#ifndef NAZARA_RENDERER_COMMANDBUFFERBUILDER_HPP
#define NAZARA_RENDERER_COMMANDBUFFERBUILDER_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/Color.hpp>
@@ -81,4 +81,4 @@ namespace Nz
#include <Nazara/Renderer/CommandBufferBuilder.inl>
#endif // NAZARA_COMMANDBUFFERBUILDER_HPP
#endif // NAZARA_RENDERER_COMMANDBUFFERBUILDER_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_COMMANDPOOL_HPP
#define NAZARA_COMMANDPOOL_HPP
#ifndef NAZARA_RENDERER_COMMANDPOOL_HPP
#define NAZARA_RENDERER_COMMANDPOOL_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Renderer/Config.hpp>
@@ -33,4 +33,4 @@ namespace Nz
#include <Nazara/Renderer/CommandPool.inl>
#endif // NAZARA_COMMANDPOOL_HPP
#endif // NAZARA_RENDERER_COMMANDPOOL_HPP

View File

@@ -24,8 +24,8 @@
#pragma once
#ifndef NAZARA_CONFIG_RENDERER_HPP
#define NAZARA_CONFIG_RENDERER_HPP
#ifndef NAZARA_RENDERER_CONFIG_HPP
#define NAZARA_RENDERER_CONFIG_HPP
/// Chaque modification d'un paramètre du module nécessite une recompilation de celui-ci
@@ -54,4 +54,4 @@
#endif
#endif
#endif // NAZARA_CONFIG_MODULENAME_HPP
#endif // NAZARA_RENDERER_CONFIG_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_CONFIG_CHECK_RENDERER_HPP
#define NAZARA_CONFIG_CHECK_RENDERER_HPP
#ifndef NAZARA_RENDERER_CONFIGCHECK_HPP
#define NAZARA_RENDERER_CONFIGCHECK_HPP
/// Ce fichier sert à vérifier la valeur des constantes du fichier Config.hpp
@@ -22,4 +22,4 @@ NazaraCheckTypeAndVal(NAZARA_RENDERER_INSTANCE_BUFFER_SIZE, integral, >, 0, " sh
#undef NazaraCheckTypeAndVal
#endif // NAZARA_CONFIG_CHECK_RENDERER_HPP
#endif // NAZARA_RENDERER_CONFIGCHECK_HPP

View File

@@ -2,6 +2,8 @@
// This file is part of the "Nazara Engine - Renderer module"
// For conditions of distribution and use, see copyright notice in Config.hpp
// no header guards
#include <Nazara/Renderer/Config.hpp>
#if NAZARA_RENDERER_MANAGE_MEMORY
#include <Nazara/Core/Debug/NewRedefinition.hpp>

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_DEBUGDRAWER_HPP
#define NAZARA_DEBUGDRAWER_HPP
#ifndef NAZARA_RENDERER_DEBUGDRAWER_HPP
#define NAZARA_RENDERER_DEBUGDRAWER_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/Color.hpp>
@@ -58,4 +58,4 @@ namespace Nz
};
}
#endif // NAZARA_DEBUG_DRAWER_HPP
#endif // NAZARA_RENDERER_DEBUGDRAWER_HPP

View File

@@ -2,6 +2,8 @@
// This file is part of the "Nazara Engine - Renderer module"
// For conditions of distribution and use, see copyright notice in Config.hpp
// no header guards
// On suppose que Debug.hpp a déjà été inclus, tout comme Config.hpp
#if NAZARA_RENDERER_MANAGE_MEMORY
#undef delete

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_ENUMS_RENDERER_HPP
#define NAZARA_ENUMS_RENDERER_HPP
#ifndef NAZARA_RENDERER_ENUMS_HPP
#define NAZARA_RENDERER_ENUMS_HPP
#include <Nazara/Core/Flags.hpp>
@@ -185,4 +185,4 @@ namespace Nz
using TextureUsageFlags = Flags<TextureUsage>;
}
#endif // NAZARA_ENUMS_RENDERER_HPP
#endif // NAZARA_RENDERER_ENUMS_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_FRAMEBUFFER_HPP
#define NAZARA_FRAMEBUFFER_HPP
#ifndef NAZARA_RENDERER_FRAMEBUFFER_HPP
#define NAZARA_RENDERER_FRAMEBUFFER_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Renderer/Config.hpp>
@@ -33,4 +33,4 @@ namespace Nz
#include <Nazara/Renderer/Framebuffer.inl>
#endif // NAZARA_FRAMEBUFFER_HPP
#endif // NAZARA_RENDERER_FRAMEBUFFER_HPP

View File

@@ -4,6 +4,11 @@
#include <Nazara/Prerequisites.hpp>
#pragma once
#ifndef NAZARA_RENDERER_GPUSWITCH_HPP
#define NAZARA_RENDERER_GPUSWITCH_HPP
#ifdef NAZARA_PLATFORM_WINDOWS
#define NAZARA_REQUEST_DEDICATED_GPU() \
@@ -18,3 +23,5 @@ extern "C" \
#define NAZARA_REQUEST_DEDICATED_GPU()
#endif
#endif // NAZARA_RENDERER_GPUSWITCH_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERBUFFER_HPP
#define NAZARA_RENDERBUFFER_HPP
#ifndef NAZARA_RENDERER_RENDERBUFFER_HPP
#define NAZARA_RENDERER_RENDERBUFFER_HPP
#include <Nazara/Core/MovablePtr.hpp>
#include <Nazara/Renderer/Config.hpp>
@@ -66,4 +66,4 @@ namespace Nz
#include <Nazara/Renderer/RenderBuffer.inl>
#endif // NAZARA_RENDERBUFFER_HPP
#endif // NAZARA_RENDERER_RENDERBUFFER_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERBUFFERVIEW_HPP
#define NAZARA_RENDERBUFFERVIEW_HPP
#ifndef NAZARA_RENDERER_RENDERBUFFERVIEW_HPP
#define NAZARA_RENDERER_RENDERBUFFERVIEW_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/MovablePtr.hpp>
@@ -38,4 +38,4 @@ namespace Nz
#include <Nazara/Renderer/RenderBufferView.inl>
#endif // NAZARA_RENDERBUFFERVIEW_HPP
#endif // NAZARA_RENDERER_RENDERBUFFERVIEW_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERDEVICEINSTANCE_HPP
#define NAZARA_RENDERDEVICEINSTANCE_HPP
#ifndef NAZARA_RENDERER_RENDERDEVICE_HPP
#define NAZARA_RENDERER_RENDERDEVICE_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Renderer/Config.hpp>
@@ -58,4 +58,4 @@ namespace Nz
#include <Nazara/Renderer/RenderDevice.inl>
#endif // NAZARA_RENDERDEVICEINSTANCE_HPP
#endif // NAZARA_RENDERER_RENDERDEVICE_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERDEVICE_HPP
#define NAZARA_RENDERDEVICE_HPP
#ifndef NAZARA_RENDERER_RENDERDEVICEINFO_HPP
#define NAZARA_RENDERER_RENDERDEVICEINFO_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Renderer/Enums.hpp>
@@ -34,4 +34,4 @@ namespace Nz
};
}
#endif // NAZARA_RENDERER_HPP
#endif // NAZARA_RENDERER_RENDERDEVICEINFO_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERFRAME_HPP
#define NAZARA_RENDERFRAME_HPP
#ifndef NAZARA_RENDERER_RENDERFRAME_HPP
#define NAZARA_RENDERER_RENDERFRAME_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Math/Vector2.hpp>
@@ -59,4 +59,4 @@ namespace Nz
#include <Nazara/Renderer/RenderFrame.inl>
#endif
#endif // NAZARA_RENDERER_RENDERFRAME_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERIMAGE_HPP
#define NAZARA_RENDERIMAGE_HPP
#ifndef NAZARA_RENDERER_RENDERIMAGE_HPP
#define NAZARA_RENDERER_RENDERIMAGE_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Renderer/Config.hpp>
@@ -81,4 +81,4 @@ namespace Nz
#include <Nazara/Renderer/RenderImage.inl>
#endif // NAZARA_RENDERIMAGE_HPP
#endif // NAZARA_RENDERER_RENDERIMAGE_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERPASS_HPP
#define NAZARA_RENDERPASS_HPP
#ifndef NAZARA_RENDERER_RENDERPASS_HPP
#define NAZARA_RENDERER_RENDERPASS_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Renderer/Config.hpp>
@@ -86,4 +86,4 @@ namespace Nz
#include <Nazara/Renderer/RenderPass.inl>
#endif // NAZARA_RENDERPASS_HPP
#endif // NAZARA_RENDERER_RENDERPASS_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERPASSCACHE_HPP
#define NAZARA_RENDERPASSCACHE_HPP
#ifndef NAZARA_RENDERER_RENDERPASSCACHE_HPP
#define NAZARA_RENDERER_RENDERPASSCACHE_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Renderer/Config.hpp>
@@ -67,4 +67,4 @@ namespace Nz
#include <Nazara/Renderer/RenderPassCache.inl>
#endif // NAZARA_RENDERPASS_HPP
#endif // NAZARA_RENDERER_RENDERPASSCACHE_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERPIPELINE_HPP
#define NAZARA_RENDERPIPELINE_HPP
#ifndef NAZARA_RENDERER_RENDERPIPELINE_HPP
#define NAZARA_RENDERER_RENDERPIPELINE_HPP
#include <Nazara/Renderer/RenderPipelineLayout.hpp>
#include <Nazara/Renderer/RenderStates.hpp>
@@ -43,4 +43,4 @@ namespace Nz
#include <Nazara/Renderer/RenderPipeline.inl>
#endif // NAZARA_RENDERPIPELINE_HPP
#endif // NAZARA_RENDERER_RENDERPIPELINE_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERPIPELINELAYOUT_HPP
#define NAZARA_RENDERPIPELINELAYOUT_HPP
#ifndef NAZARA_RENDERER_RENDERPIPELINELAYOUT_HPP
#define NAZARA_RENDERER_RENDERPIPELINELAYOUT_HPP
#include <Nazara/Core/MovablePtr.hpp>
#include <Nazara/Renderer/Enums.hpp>
@@ -42,4 +42,4 @@ namespace Nz
#include <Nazara/Renderer/RenderPipelineLayout.inl>
#endif // NAZARA_RENDERPIPELINELAYOUT_HPP
#endif // NAZARA_RENDERER_RENDERPIPELINELAYOUT_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERSTATES_HPP
#define NAZARA_RENDERSTATES_HPP
#ifndef NAZARA_RENDERER_RENDERSTATES_HPP
#define NAZARA_RENDERER_RENDERSTATES_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Utility/Enums.hpp>
@@ -64,4 +64,4 @@ namespace Nz
#include <Nazara/Renderer/RenderStates.inl>
#endif // NAZARA_RENDERSTATES_HPP
#endif // NAZARA_RENDERER_RENDERSTATES_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERSURFACE_HPP
#define NAZARA_RENDERSURFACE_HPP
#ifndef NAZARA_RENDERER_RENDERSURFACE_HPP
#define NAZARA_RENDERER_RENDERSURFACE_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Platform/WindowHandle.hpp>
@@ -27,4 +27,4 @@ namespace Nz
#include <Nazara/Renderer/RenderSurface.inl>
#endif // NAZARA_RENDERSURFACE_HPP
#endif // NAZARA_RENDERER_RENDERSURFACE_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERTARGET_HPP
#define NAZARA_RENDERTARGET_HPP
#ifndef NAZARA_RENDERER_RENDERTARGET_HPP
#define NAZARA_RENDERER_RENDERTARGET_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/Signal.hpp>
@@ -35,4 +35,4 @@ namespace Nz
#include <Nazara/Renderer/RenderTarget.inl>
#endif
#endif // NAZARA_RENDERER_RENDERTARGET_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERWINDOW_HPP
#define NAZARA_RENDERWINDOW_HPP
#ifndef NAZARA_RENDERER_RENDERWINDOW_HPP
#define NAZARA_RENDERER_RENDERWINDOW_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/Clock.hpp>
@@ -64,4 +64,4 @@ namespace Nz
#include <Nazara/Renderer/RenderWindow.inl>
#endif // NAZARA_RENDERWINDOW_HPP
#endif // NAZARA_RENDERER_RENDERWINDOW_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERWINDOWIMPL_HPP
#define NAZARA_RENDERWINDOWIMPL_HPP
#ifndef NAZARA_RENDERER_RENDERWINDOWIMPL_HPP
#define NAZARA_RENDERER_RENDERWINDOWIMPL_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Math/Vector2.hpp>
@@ -41,4 +41,4 @@ namespace Nz
};
}
#endif // NAZARA_RENDERWINDOWIMPL_HPP
#endif // NAZARA_RENDERER_RENDERWINDOWIMPL_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_RENDERWINDOWPARAMETERS_HPP
#define NAZARA_RENDERWINDOWPARAMETERS_HPP
#ifndef NAZARA_RENDERER_RENDERWINDOWPARAMETERS_HPP
#define NAZARA_RENDERER_RENDERWINDOWPARAMETERS_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Utility/PixelFormat.hpp>
@@ -20,4 +20,4 @@ namespace Nz
};
}
#endif // NAZARA_RENDERWINDOWPARAMETERS_HPP
#endif // NAZARA_RENDERER_RENDERWINDOWPARAMETERS_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_SHADERBINDING_HPP
#define NAZARA_SHADERBINDING_HPP
#ifndef NAZARA_RENDERER_SHADERBINDING_HPP
#define NAZARA_RENDERER_SHADERBINDING_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Renderer/Config.hpp>
@@ -72,4 +72,4 @@ namespace Nz
#include <Nazara/Renderer/ShaderBinding.inl>
#endif // NAZARA_SHADERBINDING_HPP
#endif // NAZARA_RENDERER_SHADERBINDING_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_TEXTURE_HPP
#define NAZARA_TEXTURE_HPP
#ifndef NAZARA_RENDERER_TEXTURE_HPP
#define NAZARA_RENDERER_TEXTURE_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Core/ObjectLibrary.hpp>
@@ -87,4 +87,4 @@ namespace Nz
#include <Nazara/Renderer/Texture.inl>
#endif // NAZARA_TEXTURE_HPP
#endif // NAZARA_RENDERER_TEXTURE_HPP

View File

@@ -4,8 +4,8 @@
#pragma once
#ifndef NAZARA_TEXTURE_SAMPLER_HPP
#define NAZARA_TEXTURE_SAMPLER_HPP
#ifndef NAZARA_RENDERER_TEXTURESAMPLER_HPP
#define NAZARA_RENDERER_TEXTURESAMPLER_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Renderer/Config.hpp>
@@ -51,4 +51,4 @@ struct std::hash<Nz::TextureSamplerInfo>;
#include <Nazara/Renderer/TextureSampler.inl>
#endif // NAZARA_TEXTURE_HPP
#endif // NAZARA_RENDERER_TEXTURESAMPLER_HPP