0.9.8: gradient_paint.hpp Source File

| 0.9.8

- Main Page
- Modules
- Files

- File List

gradient_paint.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17 #include "../gtx/optimum_pow.hpp"
18
19 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
20 # pragma message("GLM: GLM_GTX_gradient_paint extension included")
21 #endif
22
23 namespace glm
24 {
27
30 template <typename T, precision P>
31 GLM_FUNC_DECL T radialGradient(
32 tvec2<T, P> const & Center,
33 T const & Radius,
34 tvec2<T, P> const & Focal,
35 tvec2<T, P> const & Position);
36
39 template <typename T, precision P>
40 GLM_FUNC_DECL T linearGradient(
41 tvec2<T, P> const & Point0,
42 tvec2<T, P> const & Point1,
43 tvec2<T, P> const & Position);
44
46 }// namespace glm
47
48 #include "gradient_paint.inl"
glm
Definition: _noise.hpp:11
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.
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.