You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
60 lines
1.7 KiB
60 lines
1.7 KiB
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
// 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{ |
|
//! GLM_GTX_string_cast extension: Setup strings for GLM type values |
|
namespace string_cast |
|
{ |
|
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
|
|
|