38 #ifndef GLM_GTX_gradient_paint
39 #define GLM_GTX_gradient_paint
43 #include "../gtx/optimum_pow.hpp"
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTX_gradient_paint extension included")
56 template <
typename T, precision P>
58 detail::tvec2<T, P>
const & Center,
60 detail::tvec2<T, P>
const & Focal,
61 detail::tvec2<T, P>
const & Position);
65 template <
typename T, precision P>
67 detail::tvec2<T, P>
const & Point0,
68 detail::tvec2<T, P>
const & Point1,
69 detail::tvec2<T, P>
const & Position);
74 #include "gradient_paint.inl"
76 #endif//GLM_GTX_gradient_paint
T radialGradient(detail::tvec2< T, P > const &Center, T const &Radius, detail::tvec2< T, P > const &Focal, detail::tvec2< T, P > const &Position)
Return a color from a radial gradient.
T linearGradient(detail::tvec2< T, P > const &Point0, detail::tvec2< T, P > const &Point1, detail::tvec2< T, P > const &Position)
Return a color from a linear gradient.