summaryrefslogtreecommitdiffstats
path: root/external/include/glm/gtx/matrix_operation.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 17:40:38 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-21 17:40:38 +0200
commit2877f4eda3d1b0c7431039e3142ecf1a282a34b1 (patch)
tree58ad35e27ab2a3b8955f5adbf28f296670681ffc /external/include/glm/gtx/matrix_operation.hpp
parentSmooth sun movement (diff)
downloadAltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.gz
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.bz2
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.lz
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.xz
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.tar.zst
AltCraft-2877f4eda3d1b0c7431039e3142ecf1a282a34b1.zip
Diffstat (limited to 'external/include/glm/gtx/matrix_operation.hpp')
-rw-r--r--external/include/glm/gtx/matrix_operation.hpp62
1 files changed, 33 insertions, 29 deletions
diff --git a/external/include/glm/gtx/matrix_operation.hpp b/external/include/glm/gtx/matrix_operation.hpp
index 3192ae5..bce938b 100644
--- a/external/include/glm/gtx/matrix_operation.hpp
+++ b/external/include/glm/gtx/matrix_operation.hpp
@@ -6,15 +6,19 @@
/// @defgroup gtx_matrix_operation GLM_GTX_matrix_operation
/// @ingroup gtx
///
-/// @brief Build diagonal matrices from vectors.
+/// Include <glm/gtx/matrix_operation.hpp> to use the features of this extension.
///
-/// <glm/gtx/matrix_operation.hpp> need to be included to use these functionalities.
+/// Build diagonal matrices from vectors.
#pragma once
// Dependency:
#include "../glm.hpp"
+#ifndef GLM_ENABLE_EXPERIMENTAL
+# error "GLM: GLM_GTX_matrix_operation 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_matrix_operation extension included")
#endif
@@ -26,57 +30,57 @@ namespace glm
//! Build a diagonal matrix.
//! From GLM_GTX_matrix_operation extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat2x2<T, P> diagonal2x2(
- tvec2<T, P> const & v);
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<2, 2, T, Q> diagonal2x2(
+ vec<2, T, Q> const& v);
//! Build a diagonal matrix.
//! From GLM_GTX_matrix_operation extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat2x3<T, P> diagonal2x3(
- tvec2<T, P> const & v);
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<2, 3, T, Q> diagonal2x3(
+ vec<2, T, Q> const& v);
//! Build a diagonal matrix.
//! From GLM_GTX_matrix_operation extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat2x4<T, P> diagonal2x4(
- tvec2<T, P> const & v);
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<2, 4, T, Q> diagonal2x4(
+ vec<2, T, Q> const& v);
//! Build a diagonal matrix.
//! From GLM_GTX_matrix_operation extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat3x2<T, P> diagonal3x2(
- tvec2<T, P> const & v);
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<3, 2, T, Q> diagonal3x2(
+ vec<2, T, Q> const& v);
//! Build a diagonal matrix.
//! From GLM_GTX_matrix_operation extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat3x3<T, P> diagonal3x3(
- tvec3<T, P> const & v);
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<3, 3, T, Q> diagonal3x3(
+ vec<3, T, Q> const& v);
//! Build a diagonal matrix.
//! From GLM_GTX_matrix_operation extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat3x4<T, P> diagonal3x4(
- tvec3<T, P> const & v);
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<3, 4, T, Q> diagonal3x4(
+ vec<3, T, Q> const& v);
//! Build a diagonal matrix.
//! From GLM_GTX_matrix_operation extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat4x2<T, P> diagonal4x2(
- tvec2<T, P> const & v);
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<4, 2, T, Q> diagonal4x2(
+ vec<2, T, Q> const& v);
//! Build a diagonal matrix.
//! From GLM_GTX_matrix_operation extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat4x3<T, P> diagonal4x3(
- tvec3<T, P> const & v);
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<4, 3, T, Q> diagonal4x3(
+ vec<3, T, Q> const& v);
//! Build a diagonal matrix.
//! From GLM_GTX_matrix_operation extension.
- template <typename T, precision P>
- GLM_FUNC_DECL tmat4x4<T, P> diagonal4x4(
- tvec4<T, P> const & v);
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL mat<4, 4, T, Q> diagonal4x4(
+ vec<4, T, Q> const& v);
/// @}
}//namespace glm