component_wise.hpp
00001 
00002 // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
00004 // Created : 2007-05-21
00005 // Updated : 2007-05-21
00006 // Licence : This source is under MIT License
00007 // File    : glm/gtx/component_wise.hpp
00009 // Dependency:
00010 // - GLM core
00012 
00013 #ifndef glm_gtx_component_wise
00014 #define glm_gtx_component_wise
00015 
00016 // Dependency:
00017 #include "../glm.hpp"
00018 
00019 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
00020 #       pragma message("GLM: GLM_GTX_component_wise extension included")
00021 #endif
00022 
00023 namespace glm{
00024 namespace gtx{
00025 namespace component_wise 
00026 {
00029 
00032         template <typename genType> 
00033         typename genType::value_type compAdd(
00034                 genType const & v);
00035 
00038         template <typename genType> 
00039         typename genType::value_type compMul(
00040                 genType const & v);
00041 
00044         template <typename genType> 
00045         typename genType::value_type compMin(
00046                 genType const & v);
00047 
00050         template <typename genType> 
00051         typename genType::value_type compMax(
00052                 genType const & v);
00053 
00055 }//namespace component_wise
00056 }//namespace gtx
00057 }//namespace glm
00058 
00059 #include "component_wise.inl"
00060 
00061 namespace glm{using namespace gtx::component_wise;}
00062 
00063 #endif//glm_gtx_component_wise