Flow Visualisation
gradient_paint.hpp
Go to the documentation of this file.
1 
38 #ifndef GLM_GTX_gradient_paint
39 #define GLM_GTX_gradient_paint GLM_VERSION
40 
41 // Dependency:
42 #include "../glm.hpp"
43 #include "../gtx/optimum_pow.hpp"
44 
45 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
46 # pragma message("GLM: GLM_GTX_gradient_paint extension included")
47 #endif
48 
49 namespace glm
50 {
53 
56  template <typename valType>
57  valType radialGradient(
58  detail::tvec2<valType> const & Center,
59  valType const & Radius,
60  detail::tvec2<valType> const & Focal,
61  detail::tvec2<valType> const & Position);
62 
65  template <typename valType>
66  valType linearGradient(
67  detail::tvec2<valType> const & Point0,
68  detail::tvec2<valType> const & Point1,
69  detail::tvec2<valType> const & Position);
70 
72 }// namespace glm
73 
74 #include "gradient_paint.inl"
75 
76 #endif//GLM_GTX_gradient_paint
Definition: _detail.hpp:38
valType radialGradient(detail::tvec2< valType > const &Center, valType const &Radius, detail::tvec2< valType > const &Focal, detail::tvec2< valType > const &Position)
Definition: gradient_paint.inl:14
valType linearGradient(detail::tvec2< valType > const &Point0, detail::tvec2< valType > const &Point1, detail::tvec2< valType > const &Position)
Definition: gradient_paint.inl:34