1
///////////////////////////////////////////////////////////////////////////////////
2
/// OpenGL Mathematics (glm.g-truc.net)
4
/// Copyright (c) 2005 - 2012 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:
12
/// The above copyright notice and this permission notice shall be included in
13
/// all copies or substantial portions of the Software.
15
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
/// @file glm/gtx/vec1.hpp
25
/// @date 2010-02-08 / 2011-06-07
26
/// @author Christophe Riccio
28
/// @see core (dependence)
30
/// @defgroup gtx_vec1 GLM_GTX_vec1: Add vec1 types
33
/// @brief Add vec1, ivec1, uvec1 and bvec1 types.
34
/// <glm/gtx/vec1.hpp> need to be included to use these functionalities.
35
///////////////////////////////////////////////////////////////////////////////////
38
#define GLM_GTX_vec1 GLM_VERSION
42
#include "../core/type_vec1.hpp"
44
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
45
# pragma message("GLM: GLM_GTX_vec1 extension included")
50
//! 1 component vector of high precision floating-point numbers.
51
//! There is no guarantee on the actual precision.
52
//! From GLM_GTX_vec1 extension.
53
typedef detail::highp_vec1_t highp_vec1;
54
//! 1 component vector of medium precision floating-point numbers.
55
//! There is no guarantee on the actual precision.
56
//! From GLM_GTX_vec1 extension.
57
typedef detail::mediump_vec1_t mediump_vec1;
58
//! 1 component vector of low precision floating-point numbers.
59
//! There is no guarantee on the actual precision.
60
//! From GLM_GTX_vec1 extension.
61
typedef detail::lowp_vec1_t lowp_vec1;
63
//! 1 component vector of high precision signed integer numbers.
64
//! There is no guarantee on the actual precision.
65
//! From GLM_GTX_vec1 extension.
66
typedef detail::highp_ivec1_t highp_ivec1;
67
//! 1 component vector of medium precision signed integer numbers.
68
//! There is no guarantee on the actual precision.
69
//! From GLM_GTX_vec1 extension.
70
typedef detail::mediump_ivec1_t mediump_ivec1;
71
//! 1 component vector of low precision signed integer numbers.
72
//! There is no guarantee on the actual precision.
73
//! From GLM_GTX_vec1 extension.
74
typedef detail::lowp_ivec1_t lowp_ivec1;
76
//! 1 component vector of high precision unsigned integer numbers.
77
//! There is no guarantee on the actual precision.
78
//! From GLM_GTX_vec1 extension.
79
typedef detail::highp_uvec1_t highp_uvec1;
80
//! 1 component vector of medium precision unsigned integer numbers.
81
//! There is no guarantee on the actual precision.
82
//! From GLM_GTX_vec1 extension.
83
typedef detail::mediump_uvec1_t mediump_uvec1;
84
//! 1 component vector of low precision unsigned integer numbers.
85
//! There is no guarantee on the actual precision.
86
//! From GLM_GTX_vec1 extension.
87
typedef detail::lowp_uvec1_t lowp_uvec1;
89
//////////////////////////
92
//! 1 component vector of boolean.
93
//! From GLM_GTX_vec1 extension.
94
typedef detail::tvec1<bool> bvec1;
96
#if(defined(GLM_PRECISION_HIGHP_FLOAT))
97
typedef highp_vec1 vec1;
98
#elif(defined(GLM_PRECISION_MEDIUMP_FLOAT))
99
typedef mediump_vec1 vec1;
100
#elif(defined(GLM_PRECISION_LOWP_FLOAT))
101
typedef lowp_vec1 vec1;
103
//! 1 component vector of floating-point numbers.
104
//! From GLM_GTX_vec1 extension.
105
typedef mediump_vec1 vec1;
106
#endif//GLM_PRECISION
108
#if(defined(GLM_PRECISION_HIGHP_INT))
109
typedef highp_ivec1 ivec1;
110
#elif(defined(GLM_PRECISION_MEDIUMP_INT))
111
typedef mediump_ivec1 ivec1;
112
#elif(defined(GLM_PRECISION_LOWP_INT))
113
typedef lowp_ivec1 ivec1;
115
//! 1 component vector of signed integer numbers.
116
//! From GLM_GTX_vec1 extension.
117
typedef mediump_ivec1 ivec1;
118
#endif//GLM_PRECISION
120
#if(defined(GLM_PRECISION_HIGHP_UINT))
121
typedef highp_uvec1 uvec1;
122
#elif(defined(GLM_PRECISION_MEDIUMP_UINT))
123
typedef mediump_uvec1 uvec1;
124
#elif(defined(GLM_PRECISION_LOWP_UINT))
125
typedef lowp_uvec1 uvec1;
127
//! 1 component vector of unsigned integer numbers.
128
//! From GLM_GTX_vec1 extension.
129
typedef mediump_uvec1 uvec1;
130
#endif//GLM_PRECISION