summaryrefslogtreecommitdiff
path: root/src/glm/gtx/string_cast.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glm/gtx/string_cast.hpp')
-rw-r--r--src/glm/gtx/string_cast.hpp57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/glm/gtx/string_cast.hpp b/src/glm/gtx/string_cast.hpp
new file mode 100644
index 0000000..0d93487
--- /dev/null
+++ b/src/glm/gtx/string_cast.hpp
@@ -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