GLM  0.9.5
gradient_paint.hpp
Go to the documentation of this file.
1 
38 #ifndef GLM_GTX_gradient_paint
39 #define GLM_GTX_gradient_paint
40 
41 // Dependency:
42 #include "../glm.hpp"
43 #include "../gtx/optimum_pow.hpp"
44 
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTX_gradient_paint extension included")
47 #endif
48 
49 namespace glm
50 {
53 
56  template <typename T, precision P>
58  detail::tvec2<T, P> const & Center,
59  T const & Radius,
60  detail::tvec2<T, P> const & Focal,
61  detail::tvec2<T, P> const & Position);
62 
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);
70 
72 }// namespace glm
73 
74 #include "gradient_paint.inl"
75 
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.