diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 00000000..2380bc72 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,34 @@ +clone_folder: c:\dev\glm-cmake + +os: + - Visual Studio 2013 + +platform: + - x86 + - x86_64 + +build_script: +- md build_pure_11 +- cd build_pure_11 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . --config Debug +- cmake --build . --config Release +- cd .. +- md build_simd_11 +- cd build_simd_11 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_LANG_EXTENSIONS=ON .. +- cmake --build . --config Debug +- cmake --build . --config Release +- cd .. +- md build_pure_98 +- cd build_pure_98 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . --config Debug +- cmake --build . --config Release +- cd .. +- md build_simd_98 +- cd build_simd_98 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON .. +- cmake --build . --config Debug +- cmake --build . --config Release +- cd .. diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..ff6e891b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,84 @@ +language: cpp + +os: + - linux + - osx + +matrix: + include: + - compiler: gcc + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.9 + env: COMPILER=g++-4.9 + - compiler: clang + addons: + apt: + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-precise-3.8 + packages: + - clang-3.8 + env: COMPILER=clang++-3.8 + +compiler: + - clang + +before_script: + +script: +- mkdir ./build_pure_11 +- cd ./build_pure_11 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . +- ctest +- cd .. +- mkdir ./build_pure_98 +- cd ./build_pure_98 +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . +- ctest +- cd .. +- mkdir ./build_pure_11_debug +- cd ./build_pure_11_debug +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . +- ctest +- cd .. +- mkdir ./build_pure_98_debug +- cd ./build_pure_98_debug +- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_FORCE_PURE=ON .. +- cmake --build . +- ctest +- cd .. +- mkdir ./build_simd_11 +- cd ./build_simd_11 +- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON ..; else cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON ..; fi +- cmake --build . +- ctest +- cd .. +- mkdir ./build_simd_98 +- cd ./build_simd_98 +- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON ..; else cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON ..; fi +- cmake --build . +- ctest +- cd .. +- mkdir ./build_simd_11_debug +- cd ./build_simd_11_debug +- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON ..; else cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_11=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON ..; fi +- cmake --build . +- ctest +- cd .. +- mkdir ./build_simd_98_debug +- cd ./build_simd_98_debug +- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_SIMD_SSE3=ON ..; else cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Debug -DGLM_TEST_ENABLE=ON -DGLM_TEST_ENABLE_CXX_98=ON -DGLM_TEST_ENABLE_SIMD_AVX=ON ..; fi +- cmake --build . +- ctest +- cd .. + + + + diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d94c514..863049f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,38 +111,43 @@ if(GLM_TEST_FORCE_PURE) if(CMAKE_COMPILER_IS_GNUCXX) add_definitions(-mfpmath=387) endif() + message(STATUS "GLM: No SIMD instruction set") elseif(GLM_TEST_ENABLE_SIMD_AVX2) - if(CMAKE_COMPILER_IS_GNUCXX) + if(CMAKE_COMPILER_IS_GNUCXX OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")) add_definitions(-mavx2) elseif(GLM_USE_INTEL) add_definitions(/QxAVX2) elseif(MSVC) add_definitions(/arch:AVX2) endif() + message(STATUS "GLM: AVX2 instruction set") elseif(GLM_TEST_ENABLE_SIMD_AVX) - if(CMAKE_COMPILER_IS_GNUCXX) + if(CMAKE_COMPILER_IS_GNUCXX OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")) add_definitions(-mavx) elseif(GLM_USE_INTEL) add_definitions(/QxAVX) elseif(MSVC) add_definitions(/arch:AVX) endif() + message(STATUS "GLM: AVX instruction set") elseif(GLM_TEST_ENABLE_SIMD_SSE3) - if(CMAKE_COMPILER_IS_GNUCXX) + if(CMAKE_COMPILER_IS_GNUCXX OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")) add_definitions(-msse3) elseif(GLM_USE_INTEL) add_definitions(/QxSSE3) elseif(MSVC AND NOT CMAKE_CL_64) - add_definitions(/arch:SSE2) # VC doesn't support /arch:SSE3 + add_definitions(/arch:SSE2) # VC doesn't support /arch:SSE3 endif() + message(STATUS "GLM: SSE3 instruction set") elseif(GLM_TEST_ENABLE_SIMD_SSE2) - if(CMAKE_COMPILER_IS_GNUCXX) + if(CMAKE_COMPILER_IS_GNUCXX OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")) add_definitions(-msse2) elseif(GLM_USE_INTEL) add_definitions(/QxSSE2) elseif(MSVC AND NOT CMAKE_CL_64) add_definitions(/arch:SSE2) endif() + message(STATUS "GLM: SSE2 instruction set") endif() if(CMAKE_COMPILER_IS_GNUCXX) @@ -168,7 +173,7 @@ set(GLM_INSTALL_CONFIGDIR "${CMAKE_INSTALL_LIBDIR}/cmake/glm") install(DIRECTORY glm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) write_basic_package_version_file( - "${CMAKE_CURRENT_BINARY_DIR}/glmVersion.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake" VERSION ${GLM_VERSION} COMPATIBILITY AnyNewerVersion ) @@ -192,7 +197,7 @@ configure_package_config_file( install( FILES "${CMAKE_CURRENT_BINARY_DIR}/${GLM_INSTALL_CONFIGDIR}/glmConfig.cmake" - "${CMAKE_CURRENT_BINARY_DIR}/glmVersion.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake" DESTINATION ${GLM_INSTALL_CONFIGDIR} ) diff --git a/copying.txt b/copying.txt deleted file mode 100644 index 7c20b4a6..00000000 --- a/copying.txt +++ /dev/null @@ -1,54 +0,0 @@ -================================================================================ -OpenGL Mathematics (GLM) --------------------------------------------------------------------------------- -GLM can be distributed and/or modified under the terms of either -a) The Happy Bunny License, or b) the MIT License. - -================================================================================ -The Happy Bunny License (Modified MIT License) --------------------------------------------------------------------------------- -Copyright (c) 2005 - 2016 G-Truc Creation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -Restrictions: By making use of the Software for military purposes, you choose -to make a Bunny unhappy. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -================================================================================ -The MIT License --------------------------------------------------------------------------------- -Copyright (c) 2005 - 2016 G-Truc Creation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/doc/api/a00001.html b/doc/api/a00001.html index bf310c8d..17261236 100644 --- a/doc/api/a00001.html +++ b/doc/api/a00001.html @@ -4,10 +4,16 @@ -0.9.8: _features.hpp File Reference +0.9.9 API documenation: _features.hpp File Reference + + + + @@ -16,9 +22,9 @@ - + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -50,9 +89,12 @@
+

GLM Core +More...

+

Go to the source code of this file.

Detailed Description

-

GLM Core

+

GLM Core

Definition in file _features.hpp.

diff --git a/doc/api/a00001_source.html b/doc/api/a00001_source.html index 2c98faed..3b72c3ea 100644 --- a/doc/api/a00001_source.html +++ b/doc/api/a00001_source.html @@ -4,10 +4,16 @@ -0.9.8: _features.hpp Source File +0.9.9 API documenation: _features.hpp Source File + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
diff --git a/doc/api/a00002.html b/doc/api/a00002.html index 523bac0d..ced07575 100644 --- a/doc/api/a00002.html +++ b/doc/api/a00002.html @@ -4,10 +4,16 @@ -0.9.8: _fixes.hpp File Reference +0.9.9 API documenation: _fixes.hpp File Reference + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -50,9 +89,12 @@
+

GLM Core +More...

+

Go to the source code of this file.

Detailed Description

-

GLM Core

+

GLM Core

Definition in file _fixes.hpp.

diff --git a/doc/api/a00002_source.html b/doc/api/a00002_source.html index 0941ab7d..bd125830 100644 --- a/doc/api/a00002_source.html +++ b/doc/api/a00002_source.html @@ -4,10 +4,16 @@ -0.9.8: _fixes.hpp Source File +0.9.9 API documenation: _fixes.hpp Source File + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
diff --git a/doc/api/a00003.html b/doc/api/a00003.html index b5ad7703..ce30f585 100644 --- a/doc/api/a00003.html +++ b/doc/api/a00003.html @@ -4,10 +4,16 @@ -0.9.8: _noise.hpp File Reference +0.9.9 API documenation: _noise.hpp File Reference + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -50,9 +89,12 @@
+

GLM Core +More...

+

Go to the source code of this file.

Detailed Description

-

GLM Core

+

GLM Core

Definition in file _noise.hpp.

diff --git a/doc/api/a00003_source.html b/doc/api/a00003_source.html index 2575ec4a..408fb9fd 100644 --- a/doc/api/a00003_source.html +++ b/doc/api/a00003_source.html @@ -4,10 +4,16 @@ -0.9.8: _noise.hpp Source File +0.9.9 API documenation: _noise.hpp Source File + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -57,13 +96,13 @@
8 #include "../vec4.hpp"
9 #include "../common.hpp"
10 
-
11 namespace glm{
+
11 namespace glm{
12 namespace detail
13 {
14  template <typename T>
15  GLM_FUNC_QUALIFIER T mod289(T const & x)
16  {
-
17  return x - floor(x * static_cast<T>(1.0) / static_cast<T>(289.0)) * static_cast<T>(289.0);
+
17  return x - floor(x * static_cast<T>(1.0) / static_cast<T>(289.0)) * static_cast<T>(289.0);
18  }
19 
20  template <typename T>
@@ -154,8 +193,8 @@
105 }//namespace detail
106 }//namespace glm
107 
-
Definition: _noise.hpp:11
-
GLM_FUNC_DECL vecType< T, P > floor(vecType< T, P > const &x)
Returns a value equal to the nearest integer that is less then or equal to x.
+
GLM_FUNC_DECL vecType< T, P > floor(vecType< T, P > const &x)
Returns a value equal to the nearest integer that is less then or equal to x.
+
Definition: _noise.hpp:11
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -50,9 +89,12 @@
+

GLM Core +More...

+

Go to the source code of this file.

Detailed Description

-

GLM Core

+

GLM Core

Definition in file _swizzle.hpp.

diff --git a/doc/api/a00004_source.html b/doc/api/a00004_source.html index 24026574..3e79a951 100644 --- a/doc/api/a00004_source.html +++ b/doc/api/a00004_source.html @@ -4,10 +4,16 @@ -0.9.8: _swizzle.hpp Source File +0.9.9 API documenation: _swizzle.hpp Source File + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -52,7 +91,7 @@ Go to the documentation of this file.
1 
4 #pragma once
5 
-
6 namespace glm{
+
6 namespace glm{
7 namespace detail
8 {
9  // Internal class for implementing swizzle operators
@@ -312,7 +351,7 @@
263 }//namespace detail
264 }//namespace glm
265 
-
266 namespace glm
+
266 namespace glm
267 {
268  namespace detail
269  {
@@ -845,7 +884,7 @@
796  struct { detail::_swizzle<4, T, P, V, 3,3,3,2> E3 ## E3 ## E3 ## E2; }; \
797  struct { detail::_swizzle<4, T, P, V, 3,3,3,3> E3 ## E3 ## E3 ## E3; };
GLM_FUNC_DECL GLM_CONSTEXPR genType e()
Return e constant.
-
Definition: _noise.hpp:11
+
Definition: _noise.hpp:11
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -50,9 +89,12 @@
+

GLM Core +More...

+

Go to the source code of this file.

Detailed Description

-

GLM Core

+

GLM Core

Definition in file _swizzle_func.hpp.

diff --git a/doc/api/a00005_source.html b/doc/api/a00005_source.html index b8cf723e..848d0b25 100644 --- a/doc/api/a00005_source.html +++ b/doc/api/a00005_source.html @@ -4,10 +4,16 @@ -0.9.8: _swizzle_func.hpp Source File +0.9.9 API documenation: _swizzle_func.hpp Source File + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
diff --git a/doc/api/a00006.html b/doc/api/a00006.html index 2dd5b1d9..5e0264c6 100644 --- a/doc/api/a00006.html +++ b/doc/api/a00006.html @@ -4,10 +4,16 @@ -0.9.8: _vectorize.hpp File Reference +0.9.9 API documenation: _vectorize.hpp File Reference + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -50,9 +89,12 @@
+

GLM Core +More...

+

Go to the source code of this file.

Detailed Description

-

GLM Core

+

GLM Core

Definition in file _vectorize.hpp.

diff --git a/doc/api/a00006_source.html b/doc/api/a00006_source.html index 50c4a9b0..19493bf3 100644 --- a/doc/api/a00006_source.html +++ b/doc/api/a00006_source.html @@ -4,10 +4,16 @@ -0.9.8: _vectorize.hpp Source File +0.9.9 API documenation: _vectorize.hpp Source File + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -52,12 +91,12 @@ Go to the documentation of this file.
1 
4 #pragma once
5 
-
6 #include "type_vec1.hpp"
-
7 #include "type_vec2.hpp"
-
8 #include "type_vec3.hpp"
-
9 #include "type_vec4.hpp"
+
6 #include "type_vec1.hpp"
+
7 #include "type_vec2.hpp"
+
8 #include "type_vec3.hpp"
+
9 #include "type_vec4.hpp"
10 
-
11 namespace glm{
+
11 namespace glm{
12 namespace detail
13 {
14  template <typename R, typename T, precision P, template <typename, precision> class vecType>
@@ -178,11 +217,11 @@
129  };
130 }//namespace detail
131 }//namespace glm
-
GLM Core
-
Definition: _noise.hpp:11
-
GLM Core
-
GLM Core
-
GLM Core
+
GLM Core
+
GLM Core
+
GLM Core
+
Definition: _noise.hpp:11
+
GLM Core
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -52,80 +91,105 @@
-
0.9.8 +
0.9.9 API documenation
+ + + + + + + + + + + + + + + + + + + + + +

Functions

template<typename T , typename U >
GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b)
 Maximum comparison between 2 variables and returns 2 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL tvec2< U, P > associatedMax (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b)
 Maximum comparison between 2 variables and returns 2 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > associatedMax (T x, vecType< U, P > const &a, T y, vecType< U, P > const &b)
 Maximum comparison between 2 variables and returns 2 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMax (vecType< T, P > const &x, U a, vecType< T, P > const &y, U b)
 Maximum comparison between 2 variables and returns 2 associated variable values. More...
 
template<typename T , typename U >
GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b, T z, U c)
 Maximum comparison between 3 variables and returns 3 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMax (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b, vecType< T, P > const &z, vecType< U, P > const &c)
 Maximum comparison between 3 variables and returns 3 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > associatedMax (T x, vecType< U, P > const &a, T y, vecType< U, P > const &b, T z, vecType< U, P > const &c)
 Maximum comparison between 3 variables and returns 3 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMax (vecType< T, P > const &x, U a, vecType< T, P > const &y, U b, vecType< T, P > const &z, U c)
 Maximum comparison between 3 variables and returns 3 associated variable values. More...
 
template<typename T , typename U >
GLM_FUNC_DECL U associatedMax (T x, U a, T y, U b, T z, U c, T w, U d)
 Maximum comparison between 4 variables and returns 4 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMax (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b, vecType< T, P > const &z, vecType< U, P > const &c, vecType< T, P > const &w, vecType< U, P > const &d)
 Maximum comparison between 4 variables and returns 4 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMax (T x, vecType< U, P > const &a, T y, vecType< U, P > const &b, T z, vecType< U, P > const &c, T w, vecType< U, P > const &d)
 Maximum comparison between 4 variables and returns 4 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMax (vecType< T, P > const &x, U a, vecType< T, P > const &y, U b, vecType< T, P > const &z, U c, vecType< T, P > const &w, U d)
 Maximum comparison between 4 variables and returns 4 associated variable values. More...
 
template<typename T , typename U , precision P>
GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b)
 Minimum comparison between 2 variables and returns 2 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL tvec2< U, P > associatedMin (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b)
 Minimum comparison between 2 variables and returns 2 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMin (T x, const vecType< U, P > &a, T y, const vecType< U, P > &b)
 Minimum comparison between 2 variables and returns 2 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMin (vecType< T, P > const &x, U a, vecType< T, P > const &y, U b)
 Minimum comparison between 2 variables and returns 2 associated variable values. More...
 
template<typename T , typename U >
GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b, T z, U c)
 Minimum comparison between 3 variables and returns 3 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMin (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b, vecType< T, P > const &z, vecType< U, P > const &c)
 Minimum comparison between 3 variables and returns 3 associated variable values. More...
 
template<typename T , typename U >
GLM_FUNC_DECL U associatedMin (T x, U a, T y, U b, T z, U c, T w, U d)
 Minimum comparison between 4 variables and returns 4 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMin (vecType< T, P > const &x, vecType< U, P > const &a, vecType< T, P > const &y, vecType< U, P > const &b, vecType< T, P > const &z, vecType< U, P > const &c, vecType< T, P > const &w, vecType< U, P > const &d)
 Minimum comparison between 4 variables and returns 4 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMin (T x, vecType< U, P > const &a, T y, vecType< U, P > const &b, T z, vecType< U, P > const &c, T w, vecType< U, P > const &d)
 Minimum comparison between 4 variables and returns 4 associated variable values. More...
 
template<typename T , typename U , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< U, P > associatedMin (vecType< T, P > const &x, U a, vecType< T, P > const &y, U b, vecType< T, P > const &z, U c, vecType< T, P > const &w, U d)
 Minimum comparison between 4 variables and returns 4 associated variable values. More...
 

Detailed Description

GLM_GTX_associated_min_max

-
See also
GLM Core (dependence)
+
See also
GLM Core (dependence)
GLM_GTX_extented_min_max (dependence)
diff --git a/doc/api/a00007_source.html b/doc/api/a00007_source.html index d3d9bb25..1987bc33 100644 --- a/doc/api/a00007_source.html +++ b/doc/api/a00007_source.html @@ -4,10 +4,16 @@ -0.9.8: associated_min_max.hpp Source File +0.9.9 API documenation: associated_min_max.hpp Source File + + + + @@ -16,9 +22,9 @@ - + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -55,146 +94,150 @@
15 // Dependency:
16 #include "../glm.hpp"
17 
-
18 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
-
19 # pragma message("GLM: GLM_GTX_associated_min_max extension included")
+
18 #ifndef GLM_ENABLE_EXPERIMENTAL
+
19 # error "GLM: GTX_associated_min_max is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20 #endif
21 
-
22 namespace glm
-
23 {
-
26 
-
29  template<typename T, typename U, precision P>
-
30  GLM_FUNC_DECL U associatedMin(T x, U a, T y, U b);
-
31 
-
34  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
35  GLM_FUNC_DECL tvec2<U, P> associatedMin(
-
36  vecType<T, P> const & x, vecType<U, P> const & a,
-
37  vecType<T, P> const & y, vecType<U, P> const & b);
-
38 
-
41  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
42  GLM_FUNC_DECL vecType<U, P> associatedMin(
-
43  T x, const vecType<U, P>& a,
-
44  T y, const vecType<U, P>& b);
-
45 
-
48  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
49  GLM_FUNC_DECL vecType<U, P> associatedMin(
-
50  vecType<T, P> const & x, U a,
-
51  vecType<T, P> const & y, U b);
-
52 
-
55  template<typename T, typename U>
-
56  GLM_FUNC_DECL U associatedMin(
-
57  T x, U a,
-
58  T y, U b,
-
59  T z, U c);
-
60 
-
63  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
64  GLM_FUNC_DECL vecType<U, P> associatedMin(
-
65  vecType<T, P> const & x, vecType<U, P> const & a,
-
66  vecType<T, P> const & y, vecType<U, P> const & b,
-
67  vecType<T, P> const & z, vecType<U, P> const & c);
-
68 
-
71  template<typename T, typename U>
-
72  GLM_FUNC_DECL U associatedMin(
-
73  T x, U a,
-
74  T y, U b,
-
75  T z, U c,
-
76  T w, U d);
-
77 
-
80  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
81  GLM_FUNC_DECL vecType<U, P> associatedMin(
-
82  vecType<T, P> const & x, vecType<U, P> const & a,
-
83  vecType<T, P> const & y, vecType<U, P> const & b,
-
84  vecType<T, P> const & z, vecType<U, P> const & c,
-
85  vecType<T, P> const & w, vecType<U, P> const & d);
-
86 
-
89  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
90  GLM_FUNC_DECL vecType<U, P> associatedMin(
-
91  T x, vecType<U, P> const & a,
-
92  T y, vecType<U, P> const & b,
-
93  T z, vecType<U, P> const & c,
-
94  T w, vecType<U, P> const & d);
-
95 
-
98  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
99  GLM_FUNC_DECL vecType<U, P> associatedMin(
-
100  vecType<T, P> const & x, U a,
-
101  vecType<T, P> const & y, U b,
-
102  vecType<T, P> const & z, U c,
-
103  vecType<T, P> const & w, U d);
-
104 
-
107  template<typename T, typename U>
-
108  GLM_FUNC_DECL U associatedMax(T x, U a, T y, U b);
-
109 
-
112  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
113  GLM_FUNC_DECL tvec2<U, P> associatedMax(
-
114  vecType<T, P> const & x, vecType<U, P> const & a,
-
115  vecType<T, P> const & y, vecType<U, P> const & b);
-
116 
-
119  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
120  GLM_FUNC_DECL vecType<T, P> associatedMax(
-
121  T x, vecType<U, P> const & a,
-
122  T y, vecType<U, P> const & b);
-
123 
-
126  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
127  GLM_FUNC_DECL vecType<U, P> associatedMax(
-
128  vecType<T, P> const & x, U a,
-
129  vecType<T, P> const & y, U b);
-
130 
-
133  template<typename T, typename U>
-
134  GLM_FUNC_DECL U associatedMax(
-
135  T x, U a,
-
136  T y, U b,
-
137  T z, U c);
-
138 
-
141  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
142  GLM_FUNC_DECL vecType<U, P> associatedMax(
-
143  vecType<T, P> const & x, vecType<U, P> const & a,
-
144  vecType<T, P> const & y, vecType<U, P> const & b,
-
145  vecType<T, P> const & z, vecType<U, P> const & c);
-
146 
-
149  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
150  GLM_FUNC_DECL vecType<T, P> associatedMax(
-
151  T x, vecType<U, P> const & a,
-
152  T y, vecType<U, P> const & b,
-
153  T z, vecType<U, P> const & c);
-
154 
-
157  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
158  GLM_FUNC_DECL vecType<U, P> associatedMax(
-
159  vecType<T, P> const & x, U a,
-
160  vecType<T, P> const & y, U b,
-
161  vecType<T, P> const & z, U c);
-
162 
-
165  template<typename T, typename U>
-
166  GLM_FUNC_DECL U associatedMax(
-
167  T x, U a,
-
168  T y, U b,
-
169  T z, U c,
-
170  T w, U d);
-
171 
-
174  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
175  GLM_FUNC_DECL vecType<U, P> associatedMax(
-
176  vecType<T, P> const & x, vecType<U, P> const & a,
-
177  vecType<T, P> const & y, vecType<U, P> const & b,
-
178  vecType<T, P> const & z, vecType<U, P> const & c,
-
179  vecType<T, P> const & w, vecType<U, P> const & d);
-
180 
-
183  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
184  GLM_FUNC_DECL vecType<U, P> associatedMax(
-
185  T x, vecType<U, P> const & a,
-
186  T y, vecType<U, P> const & b,
-
187  T z, vecType<U, P> const & c,
-
188  T w, vecType<U, P> const & d);
-
189 
-
192  template<typename T, typename U, precision P, template <typename, precision> class vecType>
-
193  GLM_FUNC_DECL vecType<U, P> associatedMax(
-
194  vecType<T, P> const & x, U a,
-
195  vecType<T, P> const & y, U b,
-
196  vecType<T, P> const & z, U c,
-
197  vecType<T, P> const & w, U d);
-
198 
-
200 } //namespace glm
-
201 
-
202 #include "associated_min_max.inl"
+
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
+
23 # pragma message("GLM: GLM_GTX_associated_min_max extension included")
+
24 #endif
+
25 
+
26 namespace glm
+
27 {
+
30 
+
33  template<typename T, typename U, precision P>
+
34  GLM_FUNC_DECL U associatedMin(T x, U a, T y, U b);
+
35 
+
38  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
39  GLM_FUNC_DECL tvec2<U, P> associatedMin(
+
40  vecType<T, P> const & x, vecType<U, P> const & a,
+
41  vecType<T, P> const & y, vecType<U, P> const & b);
+
42 
+
45  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
46  GLM_FUNC_DECL vecType<U, P> associatedMin(
+
47  T x, const vecType<U, P>& a,
+
48  T y, const vecType<U, P>& b);
+
49 
+
52  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
53  GLM_FUNC_DECL vecType<U, P> associatedMin(
+
54  vecType<T, P> const & x, U a,
+
55  vecType<T, P> const & y, U b);
+
56 
+
59  template<typename T, typename U>
+
60  GLM_FUNC_DECL U associatedMin(
+
61  T x, U a,
+
62  T y, U b,
+
63  T z, U c);
+
64 
+
67  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
68  GLM_FUNC_DECL vecType<U, P> associatedMin(
+
69  vecType<T, P> const & x, vecType<U, P> const & a,
+
70  vecType<T, P> const & y, vecType<U, P> const & b,
+
71  vecType<T, P> const & z, vecType<U, P> const & c);
+
72 
+
75  template<typename T, typename U>
+
76  GLM_FUNC_DECL U associatedMin(
+
77  T x, U a,
+
78  T y, U b,
+
79  T z, U c,
+
80  T w, U d);
+
81 
+
84  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
85  GLM_FUNC_DECL vecType<U, P> associatedMin(
+
86  vecType<T, P> const & x, vecType<U, P> const & a,
+
87  vecType<T, P> const & y, vecType<U, P> const & b,
+
88  vecType<T, P> const & z, vecType<U, P> const & c,
+
89  vecType<T, P> const & w, vecType<U, P> const & d);
+
90 
+
93  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
94  GLM_FUNC_DECL vecType<U, P> associatedMin(
+
95  T x, vecType<U, P> const & a,
+
96  T y, vecType<U, P> const & b,
+
97  T z, vecType<U, P> const & c,
+
98  T w, vecType<U, P> const & d);
+
99 
+
102  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
103  GLM_FUNC_DECL vecType<U, P> associatedMin(
+
104  vecType<T, P> const & x, U a,
+
105  vecType<T, P> const & y, U b,
+
106  vecType<T, P> const & z, U c,
+
107  vecType<T, P> const & w, U d);
+
108 
+
111  template<typename T, typename U>
+
112  GLM_FUNC_DECL U associatedMax(T x, U a, T y, U b);
+
113 
+
116  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
117  GLM_FUNC_DECL tvec2<U, P> associatedMax(
+
118  vecType<T, P> const & x, vecType<U, P> const & a,
+
119  vecType<T, P> const & y, vecType<U, P> const & b);
+
120 
+
123  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
124  GLM_FUNC_DECL vecType<T, P> associatedMax(
+
125  T x, vecType<U, P> const & a,
+
126  T y, vecType<U, P> const & b);
+
127 
+
130  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
131  GLM_FUNC_DECL vecType<U, P> associatedMax(
+
132  vecType<T, P> const & x, U a,
+
133  vecType<T, P> const & y, U b);
+
134 
+
137  template<typename T, typename U>
+
138  GLM_FUNC_DECL U associatedMax(
+
139  T x, U a,
+
140  T y, U b,
+
141  T z, U c);
+
142 
+
145  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
146  GLM_FUNC_DECL vecType<U, P> associatedMax(
+
147  vecType<T, P> const & x, vecType<U, P> const & a,
+
148  vecType<T, P> const & y, vecType<U, P> const & b,
+
149  vecType<T, P> const & z, vecType<U, P> const & c);
+
150 
+
153  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
154  GLM_FUNC_DECL vecType<T, P> associatedMax(
+
155  T x, vecType<U, P> const & a,
+
156  T y, vecType<U, P> const & b,
+
157  T z, vecType<U, P> const & c);
+
158 
+
161  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
162  GLM_FUNC_DECL vecType<U, P> associatedMax(
+
163  vecType<T, P> const & x, U a,
+
164  vecType<T, P> const & y, U b,
+
165  vecType<T, P> const & z, U c);
+
166 
+
169  template<typename T, typename U>
+
170  GLM_FUNC_DECL U associatedMax(
+
171  T x, U a,
+
172  T y, U b,
+
173  T z, U c,
+
174  T w, U d);
+
175 
+
178  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
179  GLM_FUNC_DECL vecType<U, P> associatedMax(
+
180  vecType<T, P> const & x, vecType<U, P> const & a,
+
181  vecType<T, P> const & y, vecType<U, P> const & b,
+
182  vecType<T, P> const & z, vecType<U, P> const & c,
+
183  vecType<T, P> const & w, vecType<U, P> const & d);
+
184 
+
187  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
188  GLM_FUNC_DECL vecType<U, P> associatedMax(
+
189  T x, vecType<U, P> const & a,
+
190  T y, vecType<U, P> const & b,
+
191  T z, vecType<U, P> const & c,
+
192  T w, vecType<U, P> const & d);
+
193 
+
196  template<typename T, typename U, precision P, template <typename, precision> class vecType>
+
197  GLM_FUNC_DECL vecType<U, P> associatedMax(
+
198  vecType<T, P> const & x, U a,
+
199  vecType<T, P> const & y, U b,
+
200  vecType<T, P> const & z, U c,
+
201  vecType<T, P> const & w, U d);
+
202 
+
204 } //namespace glm
+
205 
+
206 #include "associated_min_max.inl"
GLM_FUNC_DECL vecType< U, P > associatedMax(vecType< T, P > const &x, U a, vecType< T, P > const &y, U b, vecType< T, P > const &z, U c, vecType< T, P > const &w, U d)
Maximum comparison between 4 variables and returns 4 associated variable values.
-
Definition: _noise.hpp:11
+
Definition: _noise.hpp:11
GLM_FUNC_DECL vecType< U, P > associatedMin(vecType< T, P > const &x, U a, vecType< T, P > const &y, U b, vecType< T, P > const &z, U c, vecType< T, P > const &w, U d)
Minimum comparison between 4 variables and returns 4 associated variable values.
diff --git a/doc/api/a00008.html b/doc/api/a00008.html index 2ac48bed..7cd81caa 100644 --- a/doc/api/a00008.html +++ b/doc/api/a00008.html @@ -4,10 +4,16 @@ -0.9.8: bit.hpp File Reference +0.9.9 API documenation: bit.hpp File Reference + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -52,6 +91,9 @@
-
0.9.8 +
0.9.9 API documenation
+ + + + + + +

@@ -61,34 +103,39 @@ Functions

 
template<typename T , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > highestBitValue (vecType< T, P > const &value)
 Find the highest bit set to 1 in a integer variable and return its value. More...
 
template<typename genIUType >
GLM_FUNC_DECL genIUType lowestBitValue (genIUType Value)
 
template<typename genIUType >
GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove (genIUType Value)
 Return the power of two number which value is just higher the input value. More...
 
template<typename T , precision P, template< typename, precision > class vecType>
GLM_DEPRECATED GLM_FUNC_DECL vecType< T, P > powerOfTwoAbove (vecType< T, P > const &value)
 Return the power of two number which value is just higher the input value. More...
 
template<typename genIUType >
GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow (genIUType Value)
 Return the power of two number which value is just lower the input value. More...
 
template<typename T , precision P, template< typename, precision > class vecType>
GLM_DEPRECATED GLM_FUNC_DECL vecType< T, P > powerOfTwoBelow (vecType< T, P > const &value)
 Return the power of two number which value is just lower the input value. More...
 
template<typename genIUType >
GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest (genIUType Value)
 Return the power of two number which value is the closet to the input value. More...
 
template<typename T , precision P, template< typename, precision > class vecType>
GLM_DEPRECATED GLM_FUNC_DECL vecType< T, P > powerOfTwoNearest (vecType< T, P > const &value)
 Return the power of two number which value is the closet to the input value. More...
 

Detailed Description

GLM_GTX_bit

-
See also
GLM Core (dependence)
-
-gtc_half_float (dependence)
+
See also
GLM Core (dependence)

Definition in file bit.hpp.

diff --git a/doc/api/a00008_source.html b/doc/api/a00008_source.html index 0c428def..08298f7f 100644 --- a/doc/api/a00008_source.html +++ b/doc/api/a00008_source.html @@ -4,10 +4,16 @@ -0.9.8: bit.hpp Source File +0.9.9 API documenation: bit.hpp Source File + + + + @@ -16,9 +22,9 @@ - + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -50,55 +89,59 @@
Go to the documentation of this file.
1 
-
14 #pragma once
-
15 
-
16 // Dependencies
-
17 #include "../gtc/bitfield.hpp"
-
18 
-
19 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
-
20 # pragma message("GLM: GLM_GTX_bit extension is deprecated, include GLM_GTC_bitfield and GLM_GTC_integer instead")
-
21 #endif
-
22 
-
23 namespace glm
-
24 {
-
27 
-
29  template <typename genIUType>
-
30  GLM_FUNC_DECL genIUType highestBitValue(genIUType Value);
-
31 
-
33  template <typename genIUType>
-
34  GLM_FUNC_DECL genIUType lowestBitValue(genIUType Value);
-
35 
-
39  template <typename T, precision P, template <typename, precision> class vecType>
-
40  GLM_FUNC_DECL vecType<T, P> highestBitValue(vecType<T, P> const & value);
-
41 
-
47  template <typename genIUType>
-
48  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove(genIUType Value);
-
49 
-
55  template <typename T, precision P, template <typename, precision> class vecType>
-
56  GLM_DEPRECATED GLM_FUNC_DECL vecType<T, P> powerOfTwoAbove(vecType<T, P> const & value);
-
57 
-
63  template <typename genIUType>
-
64  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow(genIUType Value);
-
65 
-
71  template <typename T, precision P, template <typename, precision> class vecType>
-
72  GLM_DEPRECATED GLM_FUNC_DECL vecType<T, P> powerOfTwoBelow(vecType<T, P> const & value);
-
73 
-
79  template <typename genIUType>
-
80  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest(genIUType Value);
-
81 
-
87  template <typename T, precision P, template <typename, precision> class vecType>
-
88  GLM_DEPRECATED GLM_FUNC_DECL vecType<T, P> powerOfTwoNearest(vecType<T, P> const & value);
-
89 
-
91 } //namespace glm
+
13 #pragma once
+
14 
+
15 // Dependencies
+
16 #include "../gtc/bitfield.hpp"
+
17 
+
18 #ifndef GLM_ENABLE_EXPERIMENTAL
+
19 # error "GLM: GLM_GTX_bit is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
+
20 #endif
+
21 
+
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
+
23 # pragma message("GLM: GLM_GTX_bit extension is deprecated, include GLM_GTC_bitfield and GLM_GTC_integer instead")
+
24 #endif
+
25 
+
26 namespace glm
+
27 {
+
30 
+
32  template <typename genIUType>
+
33  GLM_FUNC_DECL genIUType highestBitValue(genIUType Value);
+
34 
+
36  template <typename genIUType>
+
37  GLM_FUNC_DECL genIUType lowestBitValue(genIUType Value);
+
38 
+
42  template <typename T, precision P, template <typename, precision> class vecType>
+
43  GLM_FUNC_DECL vecType<T, P> highestBitValue(vecType<T, P> const & value);
+
44 
+
50  template <typename genIUType>
+
51  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove(genIUType Value);
+
52 
+
58  template <typename T, precision P, template <typename, precision> class vecType>
+
59  GLM_DEPRECATED GLM_FUNC_DECL vecType<T, P> powerOfTwoAbove(vecType<T, P> const & value);
+
60 
+
66  template <typename genIUType>
+
67  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow(genIUType Value);
+
68 
+
74  template <typename T, precision P, template <typename, precision> class vecType>
+
75  GLM_DEPRECATED GLM_FUNC_DECL vecType<T, P> powerOfTwoBelow(vecType<T, P> const & value);
+
76 
+
82  template <typename genIUType>
+
83  GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest(genIUType Value);
+
84 
+
90  template <typename T, precision P, template <typename, precision> class vecType>
+
91  GLM_DEPRECATED GLM_FUNC_DECL vecType<T, P> powerOfTwoNearest(vecType<T, P> const & value);
92 
-
93 
-
94 #include "bit.inl"
+
94 } //namespace glm
95 
+
96 
+
97 #include "bit.inl"
+
98 
GLM_DEPRECATED GLM_FUNC_DECL vecType< T, P > powerOfTwoBelow(vecType< T, P > const &value)
Return the power of two number which value is just lower the input value.
GLM_DEPRECATED GLM_FUNC_DECL vecType< T, P > powerOfTwoAbove(vecType< T, P > const &value)
Return the power of two number which value is just higher the input value.
-
Definition: _noise.hpp:11
GLM_FUNC_DECL genIUType lowestBitValue(genIUType Value)
GLM_FUNC_DECL vecType< T, P > highestBitValue(vecType< T, P > const &value)
Find the highest bit set to 1 in a integer variable and return its value.
+
Definition: _noise.hpp:11
GLM_DEPRECATED GLM_FUNC_DECL vecType< T, P > powerOfTwoNearest(vecType< T, P > const &value)
Return the power of two number which value is the closet to the input value.
diff --git a/doc/api/a00009.html b/doc/api/a00009.html index a1a96215..25b8206e 100644 --- a/doc/api/a00009.html +++ b/doc/api/a00009.html @@ -4,10 +4,16 @@ -0.9.8: bitfield.hpp File Reference +0.9.9 API documenation: bitfield.hpp File Reference + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -52,78 +91,107 @@
-
0.9.8 +
0.9.9 API documenation
- + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + +

Functions

template<typename genIUType >
GLM_FUNC_DECL genIUType bitfieldFillOne (genIUType Value, int FirstBit, int BitCount)
GLM_FUNC_DECL genIUType bitfieldFillOne (genIUType Value, int FirstBit, int BitCount)
 Set to 1 a range of bits. More...
 
template<typename T , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > bitfieldFillOne (vecType< T, P > const &Value, int FirstBit, int BitCount)
GLM_FUNC_DECL vecType< T, P > bitfieldFillOne (vecType< T, P > const &Value, int FirstBit, int BitCount)
 Set to 1 a range of bits. More...
 
template<typename genIUType >
GLM_FUNC_DECL genIUType bitfieldFillZero (genIUType Value, int FirstBit, int BitCount)
GLM_FUNC_DECL genIUType bitfieldFillZero (genIUType Value, int FirstBit, int BitCount)
 Set to 0 a range of bits. More...
 
template<typename T , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > bitfieldFillZero (vecType< T, P > const &Value, int FirstBit, int BitCount)
GLM_FUNC_DECL vecType< T, P > bitfieldFillZero (vecType< T, P > const &Value, int FirstBit, int BitCount)
 Set to 0 a range of bits. More...
 
GLM_FUNC_DECL int16 bitfieldInterleave (int8 x, int8 y)
GLM_FUNC_DECL int16 bitfieldInterleave (int8 x, int8 y)
 Interleaves the bits of x and y. More...
 
GLM_FUNC_DECL uint16 bitfieldInterleave (uint8 x, uint8 y)
GLM_FUNC_DECL uint16 bitfieldInterleave (uint8 x, uint8 y)
 Interleaves the bits of x and y. More...
 
GLM_FUNC_DECL int32 bitfieldInterleave (int16 x, int16 y)
GLM_FUNC_DECL int32 bitfieldInterleave (int16 x, int16 y)
 Interleaves the bits of x and y. More...
 
GLM_FUNC_DECL uint32 bitfieldInterleave (uint16 x, uint16 y)
GLM_FUNC_DECL uint32 bitfieldInterleave (uint16 x, uint16 y)
 Interleaves the bits of x and y. More...
 
GLM_FUNC_DECL int64 bitfieldInterleave (int32 x, int32 y)
GLM_FUNC_DECL int64 bitfieldInterleave (int32 x, int32 y)
 Interleaves the bits of x and y. More...
 
GLM_FUNC_DECL uint64 bitfieldInterleave (uint32 x, uint32 y)
GLM_FUNC_DECL uint64 bitfieldInterleave (uint32 x, uint32 y)
 Interleaves the bits of x and y. More...
 
GLM_FUNC_DECL int32 bitfieldInterleave (int8 x, int8 y, int8 z)
GLM_FUNC_DECL int32 bitfieldInterleave (int8 x, int8 y, int8 z)
 Interleaves the bits of x, y and z. More...
 
GLM_FUNC_DECL uint32 bitfieldInterleave (uint8 x, uint8 y, uint8 z)
GLM_FUNC_DECL uint32 bitfieldInterleave (uint8 x, uint8 y, uint8 z)
 Interleaves the bits of x, y and z. More...
 
GLM_FUNC_DECL int64 bitfieldInterleave (int16 x, int16 y, int16 z)
GLM_FUNC_DECL int64 bitfieldInterleave (int16 x, int16 y, int16 z)
 Interleaves the bits of x, y and z. More...
 
GLM_FUNC_DECL uint64 bitfieldInterleave (uint16 x, uint16 y, uint16 z)
GLM_FUNC_DECL uint64 bitfieldInterleave (uint16 x, uint16 y, uint16 z)
 Interleaves the bits of x, y and z. More...
 
GLM_FUNC_DECL int64 bitfieldInterleave (int32 x, int32 y, int32 z)
GLM_FUNC_DECL int64 bitfieldInterleave (int32 x, int32 y, int32 z)
 Interleaves the bits of x, y and z. More...
 
GLM_FUNC_DECL uint64 bitfieldInterleave (uint32 x, uint32 y, uint32 z)
GLM_FUNC_DECL uint64 bitfieldInterleave (uint32 x, uint32 y, uint32 z)
 Interleaves the bits of x, y and z. More...
 
GLM_FUNC_DECL int32 bitfieldInterleave (int8 x, int8 y, int8 z, int8 w)
GLM_FUNC_DECL int32 bitfieldInterleave (int8 x, int8 y, int8 z, int8 w)
 Interleaves the bits of x, y, z and w. More...
 
GLM_FUNC_DECL uint32 bitfieldInterleave (uint8 x, uint8 y, uint8 z, uint8 w)
GLM_FUNC_DECL uint32 bitfieldInterleave (uint8 x, uint8 y, uint8 z, uint8 w)
 Interleaves the bits of x, y, z and w. More...
 
GLM_FUNC_DECL int64 bitfieldInterleave (int16 x, int16 y, int16 z, int16 w)
GLM_FUNC_DECL int64 bitfieldInterleave (int16 x, int16 y, int16 z, int16 w)
 Interleaves the bits of x, y, z and w. More...
 
GLM_FUNC_DECL uint64 bitfieldInterleave (uint16 x, uint16 y, uint16 z, uint16 w)
GLM_FUNC_DECL uint64 bitfieldInterleave (uint16 x, uint16 y, uint16 z, uint16 w)
 Interleaves the bits of x, y, z and w. More...
 
template<typename genIUType >
GLM_FUNC_DECL genIUType bitfieldRotateLeft (genIUType In, int Shift)
GLM_FUNC_DECL genIUType bitfieldRotateLeft (genIUType In, int Shift)
 Rotate all bits to the left. More...
 
template<typename T , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > bitfieldRotateLeft (vecType< T, P > const &In, int Shift)
GLM_FUNC_DECL vecType< T, P > bitfieldRotateLeft (vecType< T, P > const &In, int Shift)
 Rotate all bits to the left. More...
 
template<typename genIUType >
GLM_FUNC_DECL genIUType bitfieldRotateRight (genIUType In, int Shift)
GLM_FUNC_DECL genIUType bitfieldRotateRight (genIUType In, int Shift)
 Rotate all bits to the right. More...
 
template<typename T , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > bitfieldRotateRight (vecType< T, P > const &In, int Shift)
GLM_FUNC_DECL vecType< T, P > bitfieldRotateRight (vecType< T, P > const &In, int Shift)
 Rotate all bits to the right. More...
 
template<typename genIUType >
GLM_FUNC_DECL genIUType mask (genIUType Bits)
GLM_FUNC_DECL genIUType mask (genIUType Bits)
 Build a mask of 'count' bits. More...
 
template<typename T , precision P, template< typename, precision > class vecIUType>
GLM_FUNC_DECL vecIUType< T, P > mask (vecIUType< T, P > const &v)
GLM_FUNC_DECL vecIUType< T, P > mask (vecIUType< T, P > const &v)
 Build a mask of 'count' bits. More...
 

Detailed Description

-

GLM_GTC_bitfield

-
See also
GLM Core (dependence)
+

GLM_GTC_bitfield

+
See also
GLM Core (dependence)
-GLM_GTC_bitfield (dependence)
+GLM_GTC_bitfield (dependence)

Definition in file bitfield.hpp.

diff --git a/doc/api/a00009_source.html b/doc/api/a00009_source.html index 9d837c2a..b40d8a24 100644 --- a/doc/api/a00009_source.html +++ b/doc/api/a00009_source.html @@ -4,10 +4,16 @@ -0.9.8: bitfield.hpp Source File +0.9.9 API documenation: bitfield.hpp Source File + + + + @@ -16,9 +22,9 @@ - + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -63,81 +102,81 @@
24 # pragma message("GLM: GLM_GTC_bitfield extension included")
25 #endif
26 
-
27 namespace glm
+
27 namespace glm
28 {
31 
35  template <typename genIUType>
-
36  GLM_FUNC_DECL genIUType mask(genIUType Bits);
+
36  GLM_FUNC_DECL genIUType mask(genIUType Bits);
37 
41  template <typename T, precision P, template <typename, precision> class vecIUType>
-
42  GLM_FUNC_DECL vecIUType<T, P> mask(vecIUType<T, P> const & v);
+
42  GLM_FUNC_DECL vecIUType<T, P> mask(vecIUType<T, P> const & v);
43 
47  template <typename genIUType>
-
48  GLM_FUNC_DECL genIUType bitfieldRotateRight(genIUType In, int Shift);
+
48  GLM_FUNC_DECL genIUType bitfieldRotateRight(genIUType In, int Shift);
49 
53  template <typename T, precision P, template <typename, precision> class vecType>
-
54  GLM_FUNC_DECL vecType<T, P> bitfieldRotateRight(vecType<T, P> const & In, int Shift);
+
54  GLM_FUNC_DECL vecType<T, P> bitfieldRotateRight(vecType<T, P> const & In, int Shift);
55 
59  template <typename genIUType>
-
60  GLM_FUNC_DECL genIUType bitfieldRotateLeft(genIUType In, int Shift);
+
60  GLM_FUNC_DECL genIUType bitfieldRotateLeft(genIUType In, int Shift);
61 
65  template <typename T, precision P, template <typename, precision> class vecType>
-
66  GLM_FUNC_DECL vecType<T, P> bitfieldRotateLeft(vecType<T, P> const & In, int Shift);
+
66  GLM_FUNC_DECL vecType<T, P> bitfieldRotateLeft(vecType<T, P> const & In, int Shift);
67 
71  template <typename genIUType>
-
72  GLM_FUNC_DECL genIUType bitfieldFillOne(genIUType Value, int FirstBit, int BitCount);
+
72  GLM_FUNC_DECL genIUType bitfieldFillOne(genIUType Value, int FirstBit, int BitCount);
73 
77  template <typename T, precision P, template <typename, precision> class vecType>
-
78  GLM_FUNC_DECL vecType<T, P> bitfieldFillOne(vecType<T, P> const & Value, int FirstBit, int BitCount);
+
78  GLM_FUNC_DECL vecType<T, P> bitfieldFillOne(vecType<T, P> const & Value, int FirstBit, int BitCount);
79 
83  template <typename genIUType>
-
84  GLM_FUNC_DECL genIUType bitfieldFillZero(genIUType Value, int FirstBit, int BitCount);
+
84  GLM_FUNC_DECL genIUType bitfieldFillZero(genIUType Value, int FirstBit, int BitCount);
85 
89  template <typename T, precision P, template <typename, precision> class vecType>
-
90  GLM_FUNC_DECL vecType<T, P> bitfieldFillZero(vecType<T, P> const & Value, int FirstBit, int BitCount);
+
90  GLM_FUNC_DECL vecType<T, P> bitfieldFillZero(vecType<T, P> const & Value, int FirstBit, int BitCount);
91 
-
97  GLM_FUNC_DECL int16 bitfieldInterleave(int8 x, int8 y);
+
97  GLM_FUNC_DECL int16 bitfieldInterleave(int8 x, int8 y);
98 
-
104  GLM_FUNC_DECL uint16 bitfieldInterleave(uint8 x, uint8 y);
+
104  GLM_FUNC_DECL uint16 bitfieldInterleave(uint8 x, uint8 y);
105 
-
111  GLM_FUNC_DECL int32 bitfieldInterleave(int16 x, int16 y);
+
111  GLM_FUNC_DECL int32 bitfieldInterleave(int16 x, int16 y);
112 
-
118  GLM_FUNC_DECL uint32 bitfieldInterleave(uint16 x, uint16 y);
+
118  GLM_FUNC_DECL uint32 bitfieldInterleave(uint16 x, uint16 y);
119 
-
125  GLM_FUNC_DECL int64 bitfieldInterleave(int32 x, int32 y);
+
125  GLM_FUNC_DECL int64 bitfieldInterleave(int32 x, int32 y);
126 
-
132  GLM_FUNC_DECL uint64 bitfieldInterleave(uint32 x, uint32 y);
+
132  GLM_FUNC_DECL uint64 bitfieldInterleave(uint32 x, uint32 y);
133 
-
139  GLM_FUNC_DECL int32 bitfieldInterleave(int8 x, int8 y, int8 z);
+
139  GLM_FUNC_DECL int32 bitfieldInterleave(int8 x, int8 y, int8 z);
140 
-
146  GLM_FUNC_DECL uint32 bitfieldInterleave(uint8 x, uint8 y, uint8 z);
+
146  GLM_FUNC_DECL uint32 bitfieldInterleave(uint8 x, uint8 y, uint8 z);
147 
-
153  GLM_FUNC_DECL int64 bitfieldInterleave(int16 x, int16 y, int16 z);
+
153  GLM_FUNC_DECL int64 bitfieldInterleave(int16 x, int16 y, int16 z);
154 
-
160  GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z);
+
160  GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z);
161 
-
167  GLM_FUNC_DECL int64 bitfieldInterleave(int32 x, int32 y, int32 z);
+
167  GLM_FUNC_DECL int64 bitfieldInterleave(int32 x, int32 y, int32 z);
168 
-
174  GLM_FUNC_DECL uint64 bitfieldInterleave(uint32 x, uint32 y, uint32 z);
+
174  GLM_FUNC_DECL uint64 bitfieldInterleave(uint32 x, uint32 y, uint32 z);
175 
-
181  GLM_FUNC_DECL int32 bitfieldInterleave(int8 x, int8 y, int8 z, int8 w);
+
181  GLM_FUNC_DECL int32 bitfieldInterleave(int8 x, int8 y, int8 z, int8 w);
182 
-
188  GLM_FUNC_DECL uint32 bitfieldInterleave(uint8 x, uint8 y, uint8 z, uint8 w);
+
188  GLM_FUNC_DECL uint32 bitfieldInterleave(uint8 x, uint8 y, uint8 z, uint8 w);
189 
-
195  GLM_FUNC_DECL int64 bitfieldInterleave(int16 x, int16 y, int16 z, int16 w);
+
195  GLM_FUNC_DECL int64 bitfieldInterleave(int16 x, int16 y, int16 z, int16 w);
196 
-
202  GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w);
+
202  GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w);
203 
205 } //namespace glm
206 
207 #include "bitfield.inl"
-
GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w)
Interleaves the bits of x, y, z and w.
-
GLM_FUNC_DECL vecType< T, P > bitfieldRotateLeft(vecType< T, P > const &In, int Shift)
Rotate all bits to the left.
-
Definition: _noise.hpp:11
-
GLM_FUNC_DECL vecIUType< T, P > mask(vecIUType< T, P > const &v)
Build a mask of 'count' bits.
-
GLM_FUNC_DECL vecType< T, P > bitfieldFillOne(vecType< T, P > const &Value, int FirstBit, int BitCount)
Set to 1 a range of bits.
-
GLM_FUNC_DECL vecType< T, P > bitfieldRotateRight(vecType< T, P > const &In, int Shift)
Rotate all bits to the right.
-
GLM_FUNC_DECL vecType< T, P > bitfieldFillZero(vecType< T, P > const &Value, int FirstBit, int BitCount)
Set to 0 a range of bits.
+
GLM_FUNC_DECL vecType< T, P > bitfieldRotateRight(vecType< T, P > const &In, int Shift)
Rotate all bits to the right.
+
GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w)
Interleaves the bits of x, y, z and w.
+
GLM_FUNC_DECL vecIUType< T, P > mask(vecIUType< T, P > const &v)
Build a mask of 'count' bits.
+
GLM_FUNC_DECL vecType< T, P > bitfieldFillOne(vecType< T, P > const &Value, int FirstBit, int BitCount)
Set to 1 a range of bits.
+
Definition: _noise.hpp:11
+
GLM_FUNC_DECL vecType< T, P > bitfieldFillZero(vecType< T, P > const &Value, int FirstBit, int BitCount)
Set to 0 a range of bits.
+
GLM_FUNC_DECL vecType< T, P > bitfieldRotateLeft(vecType< T, P > const &In, int Shift)
Rotate all bits to the left.
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -52,21 +91,26 @@
-
0.9.8 +
0.9.9 API documenation
+ +

Functions

template<typename T , precision P>
GLM_FUNC_DECL tvec3< T, P > closestPointOnLine (tvec3< T, P > const &point, tvec3< T, P > const &a, tvec3< T, P > const &b)
 Find the point on a straight line which is the closet of a point. More...
 
template<typename T , precision P>
GLM_FUNC_DECL tvec2< T, P > closestPointOnLine (tvec2< T, P > const &point, tvec2< T, P > const &a, tvec2< T, P > const &b)
 2d lines work as well
 

Detailed Description

GLM_GTX_closest_point

-
See also
GLM Core (dependence)
+
See also
GLM Core (dependence)

Definition in file closest_point.hpp.

diff --git a/doc/api/a00010_source.html b/doc/api/a00010_source.html index 9f0b6f4b..c3bffd3d 100644 --- a/doc/api/a00010_source.html +++ b/doc/api/a00010_source.html @@ -4,10 +4,16 @@ -0.9.8: closest_point.hpp Source File +0.9.9 API documenation: closest_point.hpp Source File + + + + @@ -16,9 +22,9 @@ - + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
@@ -55,29 +94,33 @@
15 // Dependency:
16 #include "../glm.hpp"
17 
-
18 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
-
19 # pragma message("GLM: GLM_GTX_closest_point extension included")
+
18 #ifndef GLM_ENABLE_EXPERIMENTAL
+
19 # error "GLM: GLM_GTX_closest_point is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20 #endif
21 
-
22 namespace glm
-
23 {
-
26 
-
29  template <typename T, precision P>
-
30  GLM_FUNC_DECL tvec3<T, P> closestPointOnLine(
-
31  tvec3<T, P> const & point,
-
32  tvec3<T, P> const & a,
-
33  tvec3<T, P> const & b);
-
34 
-
36  template <typename T, precision P>
-
37  GLM_FUNC_DECL tvec2<T, P> closestPointOnLine(
-
38  tvec2<T, P> const & point,
-
39  tvec2<T, P> const & a,
-
40  tvec2<T, P> const & b);
-
41 
-
43 }// namespace glm
-
44 
-
45 #include "closest_point.inl"
-
Definition: _noise.hpp:11
+
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
+
23 # pragma message("GLM: GLM_GTX_closest_point extension included")
+
24 #endif
+
25 
+
26 namespace glm
+
27 {
+
30 
+
33  template <typename T, precision P>
+
34  GLM_FUNC_DECL tvec3<T, P> closestPointOnLine(
+
35  tvec3<T, P> const & point,
+
36  tvec3<T, P> const & a,
+
37  tvec3<T, P> const & b);
+
38 
+
40  template <typename T, precision P>
+
41  GLM_FUNC_DECL tvec2<T, P> closestPointOnLine(
+
42  tvec2<T, P> const & point,
+
43  tvec2<T, P> const & a,
+
44  tvec2<T, P> const & b);
+
45 
+
47 }// namespace glm
+
48 
+
49 #include "closest_point.inl"
+
Definition: _noise.hpp:11
GLM_FUNC_DECL tvec2< T, P > closestPointOnLine(tvec2< T, P > const &point, tvec2< T, P > const &a, tvec2< T, P > const &b)
2d lines work as well
diff --git a/doc/api/a00011.html b/doc/api/a00011.html index 0e586e76..28e5afa7 100644 --- a/doc/api/a00011.html +++ b/doc/api/a00011.html @@ -4,10 +4,16 @@ -0.9.8: color_space.hpp File Reference +0.9.9 API documenation: color_encoding.hpp File Reference + + + + @@ -16,9 +22,9 @@
-
0.9.8 +
0.9.9 API documenation
- + @@ -27,11 +33,30 @@ + + +
+
+ + +
+ +
+
-
gtc/color_space.hpp File Reference
+
color_encoding.hpp File Reference
-
0.9.8 +
0.9.9 API documenation
- - - - - - - - - - - - + + + + + + + + + + + + + + + +

Functions

template<typename T , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > convertLinearToSRGB (vecType< T, P > const &ColorLinear)
 
template<typename T , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > convertLinearToSRGB (vecType< T, P > const &ColorLinear, T Gamma)
 
template<typename T , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > convertSRGBToLinear (vecType< T, P > const &ColorSRGB)
 
-template<typename T , precision P, template< typename, precision > class vecType>
GLM_FUNC_DECL vecType< T, P > convertSRGBToLinear (vecType< T, P > const &ColorSRGB, T Gamma)
 
+template<typename T , precision P>
GLM_FUNC_DECL tvec3< T, P > convertD50XYZToD65XYZ (tvec3< T, P > const &ColorD50XYZ)
 Convert a D50 YUV color to D65 YUV.
 
+template<typename T , precision P>
GLM_FUNC_DECL tvec3< T, P > convertD65XYZToD50XYZ (tvec3< T, P > const &ColorD65XYZ)
 Convert a D65 YUV color to D50 YUV.
 
+template<typename T , precision P>
GLM_FUNC_DECL tvec3< T, P > convertD65XYZToLinearSRGB (tvec3< T, P > const &ColorD65XYZ)
 Convert a D65 YUV color to linear sRGB.
 
+template<typename T , precision P>
GLM_FUNC_DECL tvec3< T, P > convertLinearSRGBToD65XYZ (tvec3< T, P > const &ColorLinearSRGB)
 Convert a linear sRGB color to D65 YUV.
 

Detailed Description

-

GLM_GTC_color_space

-
See also
GLM Core (dependence)
+

GLM_GTC_color_encoding

+
See also
GLM Core (dependence)
-GLM_GTC_color_space (dependence)
+GLM_GTC_color_encoding (dependence)
-

Definition in file gtc/color_space.hpp.

+

Definition in file color_encoding.hpp.