17 #include "../gtx/optimum_pow.hpp" 
   19 #ifndef GLM_ENABLE_EXPERIMENTAL 
   20 #       error "GLM: GLM_GTX_gradient_paint 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." 
   23 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED) 
   24 #       pragma message("GLM: GLM_GTX_gradient_paint extension included") 
   34         template <
typename T, precision P>
 
   36                 tvec2<T, P> 
const & Center,
 
   38                 tvec2<T, P> 
const & Focal,
 
   39                 tvec2<T, P> 
const & Position);
 
   43         template <
typename T, precision P>
 
   45                 tvec2<T, P> 
const & Point0,
 
   46                 tvec2<T, P> 
const & Point1,
 
   47                 tvec2<T, P> 
const & Position);
 
   52 #include "gradient_paint.inl" 
GLM_FUNC_DECL T linearGradient(tvec2< T, P > const &Point0, tvec2< T, P > const &Point1, tvec2< T, P > const &Position)
Return a color from a linear gradient. 
GLM_FUNC_DECL T radialGradient(tvec2< T, P > const &Center, T const &Radius, tvec2< T, P > const &Focal, tvec2< T, P > const &Position)
Return a color from a radial gradient.