gradient_paint.hpp Source File

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List

# gradient_paint.hpp

    00001
    00002 // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
    00004 // Created : 2009-03-06
    00005 // Updated : 2009-03-09
    00006 // Licence : This source is under MIT License
    00007 // File    : glm/gtx/gradient_paint.hpp
    00009 // Dependency:
    00010 // - GLM core
    00012
    00013 #ifndef glm_gtx_gradient_paint
    00014 #define glm_gtx_gradient_paint
    00015
    00016 // Dependency:
    00017 #include "../glm.hpp"
    00018 #include "../gtx/optimum_pow.hpp"
    00019
    00020 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
    00021 #       pragma message("GLM: GLM_GTX_gradient_paint extension included")
    00022 #endif
    00023
    00024 namespace glm
    00025 {
    00026         namespace test{
    00027                 void main_gtx_gradient_paint();
    00028         }//namespace test
    00029
    00030         namespace gtx{
    00032         namespace gradient_paint
    00033         {
    00034                 using namespace gtx::optimum_pow;
    00035
    00036                 template <typename valType>
    00037                 valType radialGradient(
    00038                         glm::detail::tvec2<valType> const & Center,
    00039                         valType const & Radius,
    00040                         glm::detail::tvec2<valType> const & Focal,
    00041                         glm::detail::tvec2<valType> const & Position);
    00042
    00043                 template <typename valType>
    00044                 valType linearGradient(
    00045                         glm::detail::tvec2<valType> const & Point0,
    00046                         glm::detail::tvec2<valType> const & Point1,
    00047                         glm::detail::tvec2<valType> const & Position);
    00048
    00049         }//namespace gradient_paint
    00050     }//namespace gtx
    00051 }//namespace glm
    00052
    00053 #include "gradient_paint.inl"
    00054
    00055 namespace glm{using namespace gtx::gradient_paint;}
    00056
    00057 #endif//glm_gtx_gradient_paint