1.0.2 API documentation: string_cast.hpp Source File

| 1.0.2 API documentation

string_cast.hpp
Go to the documentation of this file.
1
15 #pragma once
16
17 // Dependency:
18 #include "../glm.hpp"
19 #include "../gtc/type_precision.hpp"
20 #include "../gtc/quaternion.hpp"
21 #include "../gtx/dual_quaternion.hpp"
22 #include <string>
23 #include <cmath>
24 #include <cstring>
25
26 #ifndef GLM_ENABLE_EXPERIMENTAL
27 # error "GLM: GLM_GTX_string_cast is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
28 #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
29 # pragma message("GLM: GLM_GTX_string_cast extension included")
30 #endif
31
32 namespace glm
33 {
36
39 template<typename genType>
40 GLM_FUNC_DECL std::string to_string(genType const& x);
41
43 }//namespace glm
44
45 #include "string_cast.inl"
glm::to_string
GLM_FUNC_DECL std::string to_string(genType const &x)
Create a string from a GLM vector or matrix typed variable.