mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-07 23:02:07 +00:00
Add glm 0.9.2
This commit is contained in:
parent
21545e1a24
commit
c4b531ed5e
218 changed files with 46187 additions and 0 deletions
64
ExternalLibs/glm/gtx/verbose_operator.hpp
Normal file
64
ExternalLibs/glm/gtx/verbose_operator.hpp
Normal file
|
@ -0,0 +1,64 @@
|
|||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2007-05-21
|
||||
// Updated : 2007-05-21
|
||||
// Licence : This source is under MIT License
|
||||
// File : glm/gtx/verbose_operator.hpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Dependency:
|
||||
// - GLM core
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef glm_gtx_verbose_operator
|
||||
#define glm_gtx_verbose_operator
|
||||
|
||||
// Dependency:
|
||||
#include "../glm.hpp"
|
||||
|
||||
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
|
||||
# pragma message("GLM: GLM_GTX_verbose_operator extension included")
|
||||
#endif
|
||||
|
||||
namespace glm{
|
||||
namespace gtx{
|
||||
namespace verbose_operator ///< GLM_GTX_verbose_operator extension: Use words to replace operators
|
||||
{
|
||||
/// \addtogroup gtx_verbose_operator
|
||||
/// @{
|
||||
|
||||
//! Addition of two values
|
||||
//! From GLM_GTX_verbose_operator extension.
|
||||
template <typename genTypeT, typename genTypeU>
|
||||
genTypeT add(genTypeT const & a, genTypeU const & b);
|
||||
|
||||
//! Substration of two values
|
||||
//! From GLM_GTX_verbose_operator extension.
|
||||
template <typename genTypeT, typename genTypeU>
|
||||
genTypeT sub(genTypeT const & a, genTypeU const & b);
|
||||
|
||||
//! Multiplication of two values
|
||||
//! From GLM_GTX_verbose_operator extension.
|
||||
template <typename genTypeT, typename genTypeU>
|
||||
genTypeT mul(genTypeT const & a, genTypeU const & b);
|
||||
|
||||
//! Division of two values
|
||||
//! From GLM_GTX_verbose_operator extension.
|
||||
template <typename genTypeT, typename genTypeU>
|
||||
genTypeT div(genTypeT const & a, genTypeU const & b);
|
||||
|
||||
//! Multiplication and addition of three values
|
||||
//! From GLM_GTX_verbose_operator extension.
|
||||
template <typename genTypeT, typename genTypeU, typename genTypeV>
|
||||
genTypeT mad(genTypeT const & a, genTypeU const & b, genTypeV const & c);
|
||||
|
||||
/// @}
|
||||
}// namespace verbose_operator
|
||||
}// namespace gtx
|
||||
}// namespace glm
|
||||
|
||||
#include "verbose_operator.inl"
|
||||
|
||||
namespace glm{using namespace gtx::verbose_operator;}
|
||||
|
||||
#endif//glm_gtx_verbose_operator
|
Loading…
Add table
Add a link
Reference in a new issue