Rev Author Line No. Line
23 ovan 1 ///////////////////////////////////////////////////////////////////////////////////
2 /// OpenGL Mathematics (glm.g-truc.net)
3 ///
4 /// Copyright (c) 2005 - 2015 G-Truc Creation (www.g-truc.net)
5 /// Permission is hereby granted, free of charge, to any person obtaining a copy
6 /// of this software and associated documentation files (the "Software"), to deal
7 /// in the Software without restriction, including without limitation the rights
8 /// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 /// copies of the Software, and to permit persons to whom the Software is
10 /// furnished to do so, subject to the following conditions:
11 ///
12 /// The above copyright notice and this permission notice shall be included in
13 /// all copies or substantial portions of the Software.
14 ///
15 /// Restrictions:
16 ///             By making use of the Software for military purposes, you choose to make
17 ///             a Bunny unhappy.
18 ///
19 /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 /// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 /// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 /// THE SOFTWARE.
26 ///
27 /// @ref gtx_std_based_type
28 /// @file glm/gtx/std_based_type.hpp
29 /// @date 2008-06-08 / 2011-06-07
30 /// @author Christophe Riccio
31 ///
32 /// @see core (dependence)
33 /// @see gtx_extented_min_max (dependence)
34 ///
35 /// @defgroup gtx_std_based_type GLM_GTX_std_based_type
36 /// @ingroup gtx
37 ///
38 /// @brief Adds vector types based on STL value types.
39 /// <glm/gtx/std_based_type.hpp> need to be included to use these functionalities.
40 ///////////////////////////////////////////////////////////////////////////////////
41  
42 #pragma once
43  
44 // Dependency:
45 #include "../glm.hpp"
46 #include <cstdlib>
47  
48 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
49 #       pragma message("GLM: GLM_GTX_std_based_type extension included")
50 #endif
51  
52 namespace glm
53 {
54         /// @addtogroup gtx_std_based_type
55         /// @{
56  
57         /// Vector type based of one std::size_t component.
58         /// @see GLM_GTX_std_based_type
59         typedef tvec1<std::size_t, defaultp>            size1;
60  
61         /// Vector type based of two std::size_t components.
62         /// @see GLM_GTX_std_based_type
63         typedef tvec2<std::size_t, defaultp>            size2;
64  
65         /// Vector type based of three std::size_t components.
66         /// @see GLM_GTX_std_based_type
67         typedef tvec3<std::size_t, defaultp>            size3;
68  
69         /// Vector type based of four std::size_t components.
70         /// @see GLM_GTX_std_based_type
71         typedef tvec4<std::size_t, defaultp>            size4;
72  
73         /// Vector type based of one std::size_t component.
74         /// @see GLM_GTX_std_based_type
75         typedef tvec1<std::size_t, defaultp>            size1_t;
76  
77         /// Vector type based of two std::size_t components.
78         /// @see GLM_GTX_std_based_type
79         typedef tvec2<std::size_t, defaultp>            size2_t;
80  
81         /// Vector type based of three std::size_t components.
82         /// @see GLM_GTX_std_based_type
83         typedef tvec3<std::size_t, defaultp>            size3_t;
84  
85         /// Vector type based of four std::size_t components.
86         /// @see GLM_GTX_std_based_type
87         typedef tvec4<std::size_t, defaultp>            size4_t;
88  
89         /// @}
90 }//namespace glm
91  
92 #include "std_based_type.inl"