0.9.9 API documenation
string_cast.hpp
Go to the documentation of this file.
1 
16 #pragma once
17 
18 // Dependency:
19 #include "../glm.hpp"
20 #include "../gtc/type_precision.hpp"
21 #include "../gtc/quaternion.hpp"
22 #include "../gtx/dual_quaternion.hpp"
23 #include <string>
24 
25 #ifndef GLM_ENABLE_EXPERIMENTAL
26 # error "GLM: GLM_GTX_string_cast is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
27 #endif
28 
29 #if(GLM_COMPILER & GLM_COMPILER_CUDA)
30 # error "GLM_GTX_string_cast is not supported on CUDA compiler"
31 #endif
32 
33 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
34 # pragma message("GLM: GLM_GTX_string_cast extension included")
35 #endif
36 
37 namespace glm
38 {
41 
44  template <template <typename, precision> class matType, typename T, precision P>
45  GLM_FUNC_DECL std::string to_string(matType<T, P> const & x);
46 
48 }//namespace glm
49 
50 #include "string_cast.inl"
GLM_FUNC_DECL std::string to_string(matType< T, P > const &x)
Create a string from a GLM vector or matrix typed variable.
Definition: _noise.hpp:11