| 0.9.6

- Main Page
- Modules
- Files

- File List

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