mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-07 14:51:08 +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
57
ExternalLibs/glm/gtx/string_cast.hpp
Normal file
57
ExternalLibs/glm/gtx/string_cast.hpp
Normal file
|
@ -0,0 +1,57 @@
|
|||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2008-04-26
|
||||
// Updated : 2010-01-28
|
||||
// Licence : This source is under MIT License
|
||||
// File : glm/gtx/string_cast.hpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Dependency:
|
||||
// - GLM core
|
||||
// - GLM_GTC_half_float
|
||||
// - GLM_GTX_integer
|
||||
// - GLM_GTX_quaternion
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef glm_gtx_string_cast
|
||||
#define glm_gtx_string_cast
|
||||
|
||||
// Dependency:
|
||||
#include "../glm.hpp"
|
||||
#include "../gtc/half_float.hpp"
|
||||
#include "../gtx/integer.hpp"
|
||||
#include "../gtx/unsigned_int.hpp"
|
||||
#include "../gtx/quaternion.hpp"
|
||||
#include <string>
|
||||
|
||||
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
|
||||
# pragma message("GLM: GLM_GTX_string_cast extension included")
|
||||
#endif
|
||||
|
||||
namespace glm{
|
||||
namespace gtx{
|
||||
namespace string_cast ///< GLM_GTX_string_cast extension: Setup strings for GLM type values
|
||||
{
|
||||
using namespace gtc::half_float;
|
||||
using namespace gtx::integer;
|
||||
using namespace gtx::unsigned_int;
|
||||
using namespace gtx::quaternion;
|
||||
|
||||
/// \addtogroup gtx_string_cast
|
||||
/// @{
|
||||
|
||||
//! Create a string from a GLM type value.
|
||||
//! From GLM_GTX_string_cast extension.
|
||||
template <typename genType>
|
||||
std::string to_string(genType const & x);
|
||||
|
||||
/// @}
|
||||
}//namespace string_cast
|
||||
}//namespace gtx
|
||||
}//namespace glm
|
||||
|
||||
#include "string_cast.inl"
|
||||
|
||||
namespace glm{using namespace gtx::string_cast;}
|
||||
|
||||
#endif//glm_gtx_string_cast
|
Loading…
Add table
Add a link
Reference in a new issue