0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

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 #include <cmath>
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 #endif
29
30 #if(GLM_COMPILER & GLM_COMPILER_CUDA)
31 # error "GLM_GTX_string_cast is not supported on CUDA compiler"
32 #endif
33
34 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
35 # pragma message("GLM: GLM_GTX_string_cast extension included")
36 #endif
37
38 namespace glm
39 {
42
45 template<typename genType>
46 GLM_FUNC_DECL std::string to_string(genType const& x);
47
49 }//namespace glm
50
51 #include "string_cast.inl"
glm
Definition: _noise.hpp:11
glm::to_string
GLM_FUNC_DECL std::string to_string(genType const &x)
Create a string from a GLM vector or matrix typed variable.