0.9.8: string_cast.hpp Source File

| 0.9.8

- Main Page
- Modules
- Files

- File List

string_cast.hpp
Go to the documentation of this file.
1
17 #pragma once
18
19 // Dependency:
20 #include "../glm.hpp"
21 #include "../gtc/type_precision.hpp"
22 #include "../gtc/quaternion.hpp"
23 #include "../gtx/dual_quaternion.hpp"
24 #include <string>
25
26 #if(GLM_COMPILER & GLM_COMPILER_CUDA)
27 # error "GLM_GTX_string_cast is not supported on CUDA compiler"
28 #endif
29
30 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
31 # pragma message("GLM: GLM_GTX_string_cast extension included")
32 #endif
33
34 namespace glm
35 {
38
41 template <template <typename, precision> class matType, typename T, precision P>
42 GLM_FUNC_DECL std::string to_string(matType<T, P> const & x);
43
45 }//namespace glm
46
47 #include "string_cast.inl"
glm::to_string
GLM_FUNC_DECL std::string to_string(matType< T, P > const &x)
Create a string from a GLM vector or matrix typed variable.
glm
Definition: _noise.hpp:11