summaryrefslogtreecommitdiff
path: root/src/glm/gtx/gradient_paint.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glm/gtx/gradient_paint.hpp')
-rw-r--r--src/glm/gtx/gradient_paint.hpp55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/glm/gtx/gradient_paint.hpp b/src/glm/gtx/gradient_paint.hpp
new file mode 100644
index 0000000..389600a
--- /dev/null
+++ b/src/glm/gtx/gradient_paint.hpp
@@ -0,0 +1,55 @@
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// Created : 2009-03-06
+// Updated : 2009-03-09
+// Licence : This source is under MIT License
+// File : glm/gtx/gradient_paint.hpp
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// Dependency:
+// - GLM core
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+#ifndef glm_gtx_gradient_paint
+#define glm_gtx_gradient_paint
+
+// Dependency:
+#include "../glm.hpp"
+#include "../gtx/optimum_pow.hpp"
+
+#if(defined(GLM_MESSAGES) && !defined(glm_ext))
+# pragma message("GLM: GLM_GTX_gradient_paint extension included")
+#endif
+
+namespace glm{
+namespace gtx{
+namespace gradient_paint ///< GLM_GTX_gradient_paint extension: Compute a radient gradient according section OpenVG 1.1 specifications, 9.3.2 Radial Gradients
+{
+ using namespace gtx::optimum_pow;
+
+ /// \addtogroup gtx_gradient_paint
+ /// @{
+
+ template <typename valType>
+ valType radialGradient(
+ glm::detail::tvec2<valType> const & Center,
+ valType const & Radius,
+ glm::detail::tvec2<valType> const & Focal,
+ glm::detail::tvec2<valType> const & Position);
+
+ template <typename valType>
+ valType linearGradient(
+ glm::detail::tvec2<valType> const & Point0,
+ glm::detail::tvec2<valType> const & Point1,
+ glm::detail::tvec2<valType> const & Position);
+
+ /// @}
+}// namespace gradient_paint
+}// namespace gtx
+}// namespace glm
+
+#include "gradient_paint.inl"
+
+namespace glm{using namespace gtx::gradient_paint;}
+
+#endif//glm_gtx_gradient_paint