master
ブランチ master
VulkanExample / dep / include / glm / gtx / string_cast.hpp
1.2 KB、45行 生 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#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
32namespace glm
33{
34 /// @addtogroup gtx_string_cast
35 /// @{
36
37 /// Create a string from a GLM vector or matrix typed variable.
38 /// @see gtx_string_cast extension.
39 template<typename genType>
40 GLM_FUNC_DECL std::string to_string(genType const& x);
41
42 /// @}
43}//namespace glm
44
45#include "string_cast.inl"