diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-19 20:23:53 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-19 20:23:53 +0100 |
commit | ce72a4975b76c1f244221d7d11e6a4eebc98b99b (patch) | |
tree | b50ba73b4e4a14f66b281c05fd5a52e960b94076 /yage/data | |
parent | fe4ef72bde8e93589922a60b3a03dbb148a00b57 (diff) | |
download | YAGE-ce72a4975b76c1f244221d7d11e6a4eebc98b99b.tar.gz YAGE-ce72a4975b76c1f244221d7d11e6a4eebc98b99b.zip |
Using pragma instead of gards
The reason for this is that it reduces clashes between names.
Diffstat (limited to 'yage/data')
-rw-r--r-- | yage/data/cube.h | 2 | ||||
-rw-r--r-- | yage/data/input.h | 5 | ||||
-rw-r--r-- | yage/data/texture.h | 5 | ||||
-rw-r--r-- | yage/data/vertex.h | 5 |
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 |