GLM Version 0.9.0

verbose_operator.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/verbose_operator.hpp
00009 // Dependency:
00010 // - GLM core
00012 
00013 #ifndef glm_gtx_verbose_operator
00014 #define glm_gtx_verbose_operator
00015 
00016 // Dependency:
00017 #include "../glm.hpp"
00018 
00019 namespace glm
00020 {
00021         namespace test{
00022                 void main_ext_gtx_verbose_operator();
00023         }//namespace test
00024 
00025         namespace gtx{
00027         namespace verbose_operator
00028         {
00031                 template <typename genTypeT, typename genTypeU> 
00032                 genTypeT add(genTypeT const & a, genTypeU const & b);
00033 
00036                 template <typename genTypeT, typename genTypeU> 
00037                 genTypeT sub(genTypeT const & a, genTypeU const & b);
00038 
00041                 template <typename genTypeT, typename genTypeU> 
00042                 genTypeT mul(genTypeT const & a, genTypeU const & b);
00043 
00046                 template <typename genTypeT, typename genTypeU> 
00047                 genTypeT div(genTypeT const & a, genTypeU const & b);
00048 
00051                 template <typename genTypeT, typename genTypeU, typename genTypeV> 
00052                 genTypeT mad(genTypeT const & a, genTypeU const & b, genTypeV const & c);
00053         }//namespace verbose_operator
00054         }//namespace gtx
00055 }//namespace glm
00056 
00057 #include "verbose_operator.inl"
00058 
00059 namespace glm{using namespace gtx::verbose_operator;}
00060 
00061 #endif//glm_gtx_verbose_operator