- Main Page
- Related Pages
- Modules
- Files

- File List

gradient_paint.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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