]> git.localhorst.tv Git - blobs.git/blobdiff - src/graphics/glm.hpp
simple planet render
[blobs.git] / src / graphics / glm.hpp
diff --git a/src/graphics/glm.hpp b/src/graphics/glm.hpp
new file mode 100644 (file)
index 0000000..1c39ba5
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef BLOBS_GRAPHICS_GLM_HPP_
+#define BLOBS_GRAPHICS_GLM_HPP_
+
+#ifndef GLM_FORCE_RADIANS
+#  define GLM_FORCE_RADIANS 1
+#endif
+
+#include <glm/glm.hpp>
+
+// GLM moved tvec[1234] from glm::detail to glm in 0.9.6
+
+#if GLM_VERSION < 96
+
+namespace glm {
+       using tvec1 = detail::tvec1;
+       using tvec2 = detail::tvec2;
+       using tvec3 = detail::tvec3;
+       using tvec4 = detail::tvec4;
+}
+
+#endif
+
+#endif