GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

func_packing.hpp
1
36 #ifndef GLM_CORE_func_packing
37 #define GLM_CORE_func_packing
38
39 #include "type_vec2.hpp"
40 #include "type_vec4.hpp"
41
42 namespace glm
43 {
46
58 GLM_FUNC_DECL uint packUnorm2x16(vec2 const & v);
59
71 GLM_FUNC_DECL uint packSnorm2x16(vec2 const & v);
72
84 GLM_FUNC_DECL uint packUnorm4x8(vec4 const & v);
85
97 GLM_FUNC_DECL uint packSnorm4x8(vec4 const & v);
98
110 GLM_FUNC_DECL vec2 unpackUnorm2x16(uint const & p);
111
123 GLM_FUNC_DECL vec2 unpackSnorm2x16(uint const & p);
124
136 GLM_FUNC_DECL vec4 unpackUnorm4x8(uint const & p);
137
149 GLM_FUNC_DECL vec4 unpackSnorm4x8(uint const & p);
150
159 GLM_FUNC_DECL double packDouble2x32(uvec2 const & v);
160
168 GLM_FUNC_DECL uvec2 unpackDouble2x32(double const & v);
169
178 GLM_FUNC_DECL uint packHalf2x16(vec2 const & v);
179
188 GLM_FUNC_DECL vec2 unpackHalf2x16(uint const & v);
189
191 }//namespace glm
192
193 #include "func_packing.inl"
194
195 #endif//GLM_CORE_func_packing
glm::unpackSnorm4x8
GLM_FUNC_DECL vec4 unpackSnorm4x8(uint const &p)
First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
glm::packDouble2x32
GLM_FUNC_DECL double packDouble2x32(uvec2 const &v)
Returns a double-precision value obtained by packing the components of v into a 64-bit value...
glm::unpackHalf2x16
GLM_FUNC_DECL vec2 unpackHalf2x16(uint const &v)
Returns a two-component floating-point vector with components obtained by unpacking a 32-bit unsigned...
glm::vec4
highp_vec4 vec4
4 components vector of floating-point numbers.
Definition: type_vec.hpp:398
glm::uint
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:171
glm::packUnorm4x8
GLM_FUNC_DECL uint packUnorm4x8(vec4 const &v)
First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
glm::unpackUnorm4x8
GLM_FUNC_DECL vec4 unpackUnorm4x8(uint const &p)
First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
glm::packUnorm2x16
GLM_FUNC_DECL uint packUnorm2x16(vec2 const &v)
First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
glm::unpackUnorm2x16
GLM_FUNC_DECL vec2 unpackUnorm2x16(uint const &p)
First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
glm::packSnorm4x8
GLM_FUNC_DECL uint packSnorm4x8(vec4 const &v)
First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
glm::unpackSnorm2x16
GLM_FUNC_DECL vec2 unpackSnorm2x16(uint const &p)
First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.
glm::uvec2
highp_uvec2 uvec2
2 components vector of unsigned integer numbers.
Definition: type_vec.hpp:472
glm::packSnorm2x16
GLM_FUNC_DECL uint packSnorm2x16(vec2 const &v)
First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...
glm::packHalf2x16
GLM_FUNC_DECL uint packHalf2x16(vec2 const &v)
Returns an unsigned integer obtained by converting the components of a two-component floating-point v...
glm::unpackDouble2x32
GLM_FUNC_DECL uvec2 unpackDouble2x32(double const &v)
Returns a two-component unsigned integer vector representation of v.
glm::vec2
highp_vec2 vec2
2 components vector of floating-point numbers.
Definition: type_vec.hpp:388