replace include guards with pragma once

This commit is contained in:
MihailRis
2024-08-10 01:57:59 +03:00
parent f43cc93cd2
commit de5c75d782
164 changed files with 166 additions and 656 deletions
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MATHS_FRUSTUM_CULLING_HPP_
#define MATHS_FRUSTUM_CULLING_HPP_
#pragma once
#include <glm/matrix.hpp>
@@ -128,5 +127,3 @@ inline glm::vec3 Frustum::intersection(const glm::vec3* crosses) const {
glm::vec3(m_planes[a].w, m_planes[b].w, m_planes[c].w);
return res * (-1.0f / D);
}
#endif // MATHS_FRUSTUM_CULLING_HPP_
+1 -4
View File
@@ -1,7 +1,6 @@
/// C++ LMPacker port
/// https://github.com/MihailRis/LMPacker
#ifndef LMPACKER_HPP_
#define LMPACKER_HPP_
#pragma once
#include <stdint.h>
#include <stdlib.h>
@@ -59,5 +58,3 @@ public:
return rects;
}
};
#endif // LMPACKER_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MATHS_UVREGION_HPP_
#define MATHS_UVREGION_HPP_
#pragma once
#include <cmath>
@@ -24,5 +23,3 @@ struct UVRegion {
return fabs(v2 - v1);
}
};
#endif // MATHS_UVREGION_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MATHS_AABB_HPP_
#define MATHS_AABB_HPP_
#pragma once
#include <glm/glm.hpp>
@@ -103,5 +102,3 @@ struct AABB {
);
}
};
#endif // MATHS_AABB_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MATHS_FASTMATHS_HPP_
#define MATHS_FASTMATHS_HPP_
#pragma once
#include "typedefs.hpp"
@@ -19,5 +18,3 @@ public:
return rand() / float(0x7FFF);
}
};
#endif // MATHS_FASTMATHS_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MATHS_RAYS_HPP_
#define MATHS_RAYS_HPP_
#pragma once
#include "aabb.hpp"
#include <glm/glm.hpp>
@@ -76,5 +75,3 @@ public:
scalar_t& distance_ret
);
};
#endif // SRC_VOXNATHS_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MATHS_UTIL_HPP_
#define MATHS_UTIL_HPP_
#pragma once
#include <stdint.h>
@@ -51,5 +50,3 @@ public:
rand();
}
};
#endif // MATHS_UTIL_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef VOXNATHS_HPP_
#define VOXNATHS_HPP_
#pragma once
#include "typedefs.hpp"
@@ -47,5 +46,3 @@ inline int fast_rand(void) {
inline light_t light_pack(ubyte r, ubyte g, ubyte b, ubyte s) {
return r | (g << 4) | (b << 8) | (s << 12);
}
#endif // VOXNATHS_HPP_