From b5b9c95de160a97701777d37187de194d0b29e61 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Jan 2022 19:55:40 +0000 Subject: Replace include guard macros with pragma once --- gfx/gl/camera.h | 5 +---- gfx/gl/glSource.h | 5 +---- gfx/gl/programHandle.h | 5 +---- gfx/gl/shader.h | 5 +---- gfx/gl/uiShader.h | 5 +---- 5 files changed, 5 insertions(+), 20 deletions(-) (limited to 'gfx/gl') diff --git a/gfx/gl/camera.h b/gfx/gl/camera.h index 1d3f5b3..9fbb0a1 100644 --- a/gfx/gl/camera.h +++ b/gfx/gl/camera.h @@ -1,5 +1,4 @@ -#ifndef CAMERA_INCLUDED_H -#define CAMERA_INCLUDED_H +#pragma once #include @@ -17,5 +16,3 @@ public: private: glm::mat4 projection; }; - -#endif diff --git a/gfx/gl/glSource.h b/gfx/gl/glSource.h index 7b43c48..c6b1f41 100644 --- a/gfx/gl/glSource.h +++ b/gfx/gl/glSource.h @@ -1,5 +1,4 @@ -#ifndef SHADER_SOURCE_H -#define SHADER_SOURCE_H +#pragma once #include #include @@ -15,5 +14,3 @@ struct GLsource { [[nodiscard]] ShaderRef compile() const; static void CheckShaderError(GLuint shader, GLuint flag, bool isProgram, std::string_view errorMessage); }; - -#endif diff --git a/gfx/gl/programHandle.h b/gfx/gl/programHandle.h index 5bd5c05..a2a7a2d 100644 --- a/gfx/gl/programHandle.h +++ b/gfx/gl/programHandle.h @@ -1,5 +1,4 @@ -#ifndef PROGRAM_HANDLE_H -#define PROGRAM_HANDLE_H +#pragma once #include #include @@ -12,5 +11,3 @@ public: ProgramRef m_program; GLint viewProjection_uniform, model_uniform; }; - -#endif diff --git a/gfx/gl/shader.h b/gfx/gl/shader.h index 7df7a07..8411b94 100644 --- a/gfx/gl/shader.h +++ b/gfx/gl/shader.h @@ -1,5 +1,4 @@ -#ifndef SHADER_INCLUDED_H -#define SHADER_INCLUDED_H +#pragma once #include "programHandle.h" #include @@ -26,5 +25,3 @@ private: std::array programs; }; - -#endif diff --git a/gfx/gl/uiShader.h b/gfx/gl/uiShader.h index 502ba13..ea5bf25 100644 --- a/gfx/gl/uiShader.h +++ b/gfx/gl/uiShader.h @@ -1,5 +1,4 @@ -#ifndef UISHADER_H -#define UISHADER_H +#pragma once #include "programHandle.h" #include @@ -18,5 +17,3 @@ private: }; UIProgramHandle progDefault, progText; }; - -#endif -- cgit v1.2.3