summaryrefslogtreecommitdiffstats
path: root/external/include/glm/gtx/normal.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'external/include/glm/gtx/normal.hpp')
-rw-r--r--external/include/glm/gtx/normal.hpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/external/include/glm/gtx/normal.hpp b/external/include/glm/gtx/normal.hpp
index 2e0044e..03dbffe 100644
--- a/external/include/glm/gtx/normal.hpp
+++ b/external/include/glm/gtx/normal.hpp
@@ -7,15 +7,19 @@
/// @defgroup gtx_normal GLM_GTX_normal
/// @ingroup gtx
///
-/// @brief Compute the normal of a triangle.
+/// Include <glm/gtx/normal.hpp> to use the features of this extension.
///
-/// <glm/gtx/normal.hpp> need to be included to use these functionalities.
+/// Compute the normal of a triangle.
#pragma once
// Dependency:
#include "../glm.hpp"
+#ifndef GLM_ENABLE_EXPERIMENTAL
+# error "GLM: GLM_GTX_normal is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
+#endif
+
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTX_normal extension included")
#endif
@@ -25,13 +29,11 @@ namespace glm
/// @addtogroup gtx_normal
/// @{
- //! Computes triangle normal from triangle points.
- //! From GLM_GTX_normal extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tvec3<T, P> triangleNormal(
- tvec3<T, P> const & p1,
- tvec3<T, P> const & p2,
- tvec3<T, P> const & p3);
+ /// Computes triangle normal from triangle points.
+ ///
+ /// @see gtx_normal
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL vec<3, T, Q> triangleNormal(vec<3, T, Q> const& p1, vec<3, T, Q> const& p2, vec<3, T, Q> const& p3);
/// @}
}//namespace glm