master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / std_based_type.hpp
1.9 KB、68行 生 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#endif
23
24#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
25# pragma message("GLM: GLM_GTX_std_based_type extension included")
26#endif
27
28namespace glm
29{
30 /// @addtogroup gtx_std_based_type
31 /// @{
32
33 /// Vector type based of one std::size_t component.
34 /// @see GLM_GTX_std_based_type
35 typedef vec<1, std::size_t, defaultp> size1;
36
37 /// Vector type based of two std::size_t components.
38 /// @see GLM_GTX_std_based_type
39 typedef vec<2, std::size_t, defaultp> size2;
40
41 /// Vector type based of three std::size_t components.
42 /// @see GLM_GTX_std_based_type
43 typedef vec<3, std::size_t, defaultp> size3;
44
45 /// Vector type based of four std::size_t components.
46 /// @see GLM_GTX_std_based_type
47 typedef vec<4, std::size_t, defaultp> size4;
48
49 /// Vector type based of one std::size_t component.
50 /// @see GLM_GTX_std_based_type
51 typedef vec<1, std::size_t, defaultp> size1_t;
52
53 /// Vector type based of two std::size_t components.
54 /// @see GLM_GTX_std_based_type
55 typedef vec<2, std::size_t, defaultp> size2_t;
56
57 /// Vector type based of three std::size_t components.
58 /// @see GLM_GTX_std_based_type
59 typedef vec<3, std::size_t, defaultp> size3_t;
60
61 /// Vector type based of four std::size_t components.
62 /// @see GLM_GTX_std_based_type
63 typedef vec<4, std::size_t, defaultp> size4_t;
64
65 /// @}
66}//namespace glm
67
68#include "std_based_type.inl"