aboutsummaryrefslogtreecommitdiffstats
path: root/yage/data
diff options
context:
space:
mode:
Diffstat (limited to 'yage/data')
-rw-r--r--yage/data/cube.h2
-rw-r--r--yage/data/input.h5
-rw-r--r--yage/data/texture.h5
-rw-r--r--yage/data/vertex.h5
4 files changed, 5 insertions, 12 deletions
diff --git a/yage/data/cube.h b/yage/data/cube.h
index 2aef00e5..070052c8 100644
--- a/yage/data/cube.h
+++ b/yage/data/cube.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include "glad/glad.h"
static const GLfloat gl_cube_buffer[] = {
diff --git a/yage/data/input.h b/yage/data/input.h
index 22cadb62..7a0898ef 100644
--- a/yage/data/input.h
+++ b/yage/data/input.h
@@ -6,8 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#ifndef YAGE_CORE_INPUT_H
-#define YAGE_CORE_INPUT_H
+#pragma once
#ifdef _WIN32
#ifdef DELETE
@@ -161,5 +160,3 @@ enum class key {
#undef YAGE_DELETE_TMP
#endif
#endif
-
-#endif
diff --git a/yage/data/texture.h b/yage/data/texture.h
index 81b2f004..0f676df2 100644
--- a/yage/data/texture.h
+++ b/yage/data/texture.h
@@ -6,8 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#ifndef YAGE_CORE_TEXTURE_H
-#define YAGE_CORE_TEXTURE_H
+#pragma once
#include <glad/glad.h>
@@ -30,5 +29,3 @@ struct Texture {
};
} // namespace yage
-
-#endif
diff --git a/yage/data/vertex.h b/yage/data/vertex.h
index 4cd095a9..072feb9f 100644
--- a/yage/data/vertex.h
+++ b/yage/data/vertex.h
@@ -6,8 +6,7 @@
* ----------------------------------------------------------------------------
*/
-#ifndef VERTEX_H
-#define VERTEX_H
+#pragma once
#include <glad/glad.h>
@@ -80,5 +79,3 @@ struct Vertex {
};
} // namespace yage
-
-#endif