0.9.6
gradient_paint.hpp
Go to the documentation of this file.
1 
38 #pragma once
39 
40 // Dependency:
41 #include "../glm.hpp"
42 #include "../gtx/optimum_pow.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_gradient_paint extension included")
46 #endif
47 
48 namespace glm
49 {
52 
55  template <typename T, precision P>
56  GLM_FUNC_DECL T radialGradient(
57  tvec2<T, P> const & Center,
58  T const & Radius,
59  tvec2<T, P> const & Focal,
60  tvec2<T, P> const & Position);
61 
64  template <typename T, precision P>
65  GLM_FUNC_DECL T linearGradient(
66  tvec2<T, P> const & Point0,
67  tvec2<T, P> const & Point1,
68  tvec2<T, P> const & Position);
69 
71 }// namespace glm
72 
73 #include "gradient_paint.inl"
Definition: _noise.hpp:31
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.
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.