master
ブランチ master
VulkanExample / dep / include / glm / gtx / std_based_type.hpp
2 KB、66行 生 Blame 履歴
1/// @ref gtx_std_based_type
2/// @file glm/gtx/std_based_type.hpp
3///
4/// @see core (dependence)
5/// @see gtx_extented_min_max (dependence)
6///
7/// @defgroup gtx_std_based_type GLM_GTX_std_based_type
8/// @ingroup gtx
9///
10/// Include <glm/gtx/std_based_type.hpp> to use the features of this extension.
11///
12/// Adds vector types based on STL value types.
13
14#pragma once
15
16// Dependency:
17#include "../glm.hpp"
18#include <cstdlib>
19
20#ifndef GLM_ENABLE_EXPERIMENTAL
21# error "GLM: GLM_GTX_std_based_type 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."
22#elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
23# pragma message("GLM: GLM_GTX_std_based_type extension included")
24#endif
25
26namespace glm
27{
28 /// @addtogroup gtx_std_based_type
29 /// @{
30
31 /// Vector type based of one std::size_t component.
32 /// @see GLM_GTX_std_based_type
33 typedef vec<1, std::size_t, defaultp> size1;
34
35 /// Vector type based of two std::size_t components.
36 /// @see GLM_GTX_std_based_type
37 typedef vec<2, std::size_t, defaultp> size2;
38
39 /// Vector type based of three std::size_t components.
40 /// @see GLM_GTX_std_based_type
41 typedef vec<3, std::size_t, defaultp> size3;
42
43 /// Vector type based of four std::size_t components.
44 /// @see GLM_GTX_std_based_type
45 typedef vec<4, std::size_t, defaultp> size4;
46
47 /// Vector type based of one std::size_t component.
48 /// @see GLM_GTX_std_based_type
49 typedef vec<1, std::size_t, defaultp> size1_t;
50
51 /// Vector type based of two std::size_t components.
52 /// @see GLM_GTX_std_based_type
53 typedef vec<2, std::size_t, defaultp> size2_t;
54
55 /// Vector type based of three std::size_t components.
56 /// @see GLM_GTX_std_based_type
57 typedef vec<3, std::size_t, defaultp> size3_t;
58
59 /// Vector type based of four std::size_t components.
60 /// @see GLM_GTX_std_based_type
61 typedef vec<4, std::size_t, defaultp> size4_t;
62
63 /// @}
64}//namespace glm
65
66#include "std_based_type.inl"