1 /// @ref gtx_optimum_pow
2 /// @file glm/gtx/optimum_pow.hpp
3 ///
4 /// @see core (dependence)
5 ///
6 /// @defgroup gtx_optimum_pow GLM_GTX_optimum_pow
7 /// @ingroup gtx
8 ///
9 /// @brief Integer exponentiation of power functions.
10 ///
11 /// <glm/gtx/optimum_pow.hpp> need to be included to use these functionalities.
12 
13 #pragma once
14 
15 // Dependency:
16 #include "../glm.hpp"
17 
18 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
19 #	pragma message("GLM: GLM_GTX_optimum_pow extension included")
20 #endif
21 
22 namespace glm{
23 namespace gtx
24 {
25 	/// @addtogroup gtx_optimum_pow
26 	/// @{
27 
28 	/// Returns x raised to the power of 2.
29 	///
30 	/// @see gtx_optimum_pow
31 	template <typename genType>
32 	GLM_FUNC_DECL genType pow2(genType const & x);
33 
34 	/// Returns x raised to the power of 3.
35 	///
36 	/// @see gtx_optimum_pow
37 	template <typename genType>
38 	GLM_FUNC_DECL genType pow3(genType const & x);
39 
40 	/// Returns x raised to the power of 4.
41 	///
42 	/// @see gtx_optimum_pow
43 	template <typename genType>
44 	GLM_FUNC_DECL genType pow4(genType const & x);
45 
46 	/// @}
47 }//namespace gtx
48 }//namespace glm
49 
50 #include "optimum_pow.inl"
51