From 75939a7960d4e5eae2f7118464f0464cebffc620 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 10 Oct 2014 01:21:04 +0200 Subject: [PATCH] Fixed GTX_string_cast to support for integer types #249 --- glm/gtx/string_cast.hpp | 11 +- glm/gtx/string_cast.inl | 698 +++++++++++++++++------------------ readme.txt | 1 + test/gtx/gtx_string_cast.cpp | 135 ++++--- 4 files changed, 429 insertions(+), 416 deletions(-) diff --git a/glm/gtx/string_cast.hpp b/glm/gtx/string_cast.hpp index 9d2217bb..3dd7cad3 100644 --- a/glm/gtx/string_cast.hpp +++ b/glm/gtx/string_cast.hpp @@ -22,7 +22,7 @@ /// /// @ref gtx_string_cast /// @file glm/gtx/string_cast.hpp -/// @date 2008-04-26 / 2011-06-07 +/// @date 2008-04-26 / 2014-05-10 /// @author Christophe Riccio /// /// @see core (dependence) @@ -43,8 +43,7 @@ // Dependency: #include "../glm.hpp" -#include "../gtx/integer.hpp" -#include "../gtx/quaternion.hpp" +#include "../gtc/type_precision.hpp" #include #if(GLM_COMPILER & GLM_COMPILER_CUDA) @@ -60,10 +59,10 @@ namespace glm /// @addtogroup gtx_string_cast /// @{ - /// Create a string from a GLM type value. + /// Create a string from a GLM vector or matrix typed variable. /// @see gtx_string_cast extension. - template - GLM_FUNC_DECL std::string to_string(genType const & x); + template