master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / string_cast.hpp
1.3 KB、52行 生 Blame 履歴
1/// @ref gtx_string_cast
2/// @file glm/gtx/string_cast.hpp
3///
4/// @see core (dependence)
5/// @see gtx_integer (dependence)
6/// @see gtx_quaternion (dependence)
7///
8/// @defgroup gtx_string_cast GLM_GTX_string_cast
9/// @ingroup gtx
10///
11/// Include <glm/gtx/string_cast.hpp> to use the features of this extension.
12///
13/// Setup strings for GLM type values
14///
15/// This extension is not supported with CUDA
16
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#include <cmath>
26
27#ifndef GLM_ENABLE_EXPERIMENTAL
28# 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."
29#endif
30
31#if(GLM_COMPILER & GLM_COMPILER_CUDA)
32# error "GLM_GTX_string_cast is not supported on CUDA compiler"
33#endif
34
35#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
36# pragma message("GLM: GLM_GTX_string_cast extension included")
37#endif
38
39namespace glm
40{
41 /// @addtogroup gtx_string_cast
42 /// @{
43
44 /// Create a string from a GLM vector or matrix typed variable.
45 /// @see gtx_string_cast extension.
46 template<typename genType>
47 GLM_FUNC_DECL std::string to_string(genType const& x);
48
49 /// @}
50}//namespace glm
51
52#include "string_cast.inl"