master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / optimum_pow.hpp
1.3 KB、54行 生 Blame 履歴
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/// Include <glm/gtx/optimum_pow.hpp> to use the features of this extension.
10///
11/// Integer exponentiation of power functions.
12
13#pragma once
14
15// Dependency:
16#include "../glm.hpp"
17
18#ifndef GLM_ENABLE_EXPERIMENTAL
19# error "GLM: GLM_GTX_optimum_pow 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."
20#endif
21
22#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
23# pragma message("GLM: GLM_GTX_optimum_pow extension included")
24#endif
25
26namespace glm{
27namespace gtx
28{
29 /// @addtogroup gtx_optimum_pow
30 /// @{
31
32 /// Returns x raised to the power of 2.
33 ///
34 /// @see gtx_optimum_pow
35 template<typename genType>
36 GLM_FUNC_DECL genType pow2(genType const& x);
37
38 /// Returns x raised to the power of 3.
39 ///
40 /// @see gtx_optimum_pow
41 template<typename genType>
42 GLM_FUNC_DECL genType pow3(genType const& x);
43
44 /// Returns x raised to the power of 4.
45 ///
46 /// @see gtx_optimum_pow
47 template<typename genType>
48 GLM_FUNC_DECL genType pow4(genType const& x);
49
50 /// @}
51}//namespace gtx
52}//namespace glm
53
54#include "optimum_pow.inl"