| 0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

packing.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 #include "detail/type_vec2.hpp"
17 #include "detail/type_vec4.hpp"
18
19 namespace glm
20 {
23
35 GLM_FUNC_DECL uint packUnorm2x16(vec2 const& v);
36
48 GLM_FUNC_DECL uint packSnorm2x16(vec2 const& v);
49
61 GLM_FUNC_DECL uint packUnorm4x8(vec4 const& v);
62
74 GLM_FUNC_DECL uint packSnorm4x8(vec4 const& v);
75
87 GLM_FUNC_DECL vec2 unpackUnorm2x16(uint p);
88
100 GLM_FUNC_DECL vec2 unpackSnorm2x16(uint p);
101
113 GLM_FUNC_DECL vec4 unpackUnorm4x8(uint p);
114
126 GLM_FUNC_DECL vec4 unpackSnorm4x8(uint p);
127
136 GLM_FUNC_DECL double packDouble2x32(uvec2 const& v);
137
145 GLM_FUNC_DECL uvec2 unpackDouble2x32(double v);
146
155 GLM_FUNC_DECL uint packHalf2x16(vec2 const& v);
156
165 GLM_FUNC_DECL vec2 unpackHalf2x16(uint v);
166
168 }//namespace glm
169
170 #include "detail/func_packing.inl"
type_vec4.hpp
Core features
type_vec2.hpp
Core features
glm::unpackUnorm4x8
GLM_FUNC_DECL vec4 unpackUnorm4x8(uint 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::vec2
highp_vec2 vec2
2 components vector of floating-point numbers.
Definition: type_vec.hpp:457
glm
Definition: common.hpp:20
glm::unpackSnorm2x16
GLM_FUNC_DECL vec2 unpackSnorm2x16(uint 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::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::vec4
highp_vec4 vec4
4 components vector of floating-point numbers.
Definition: type_vec.hpp:467
glm::unpackDouble2x32
GLM_FUNC_DECL uvec2 unpackDouble2x32(double v)
Returns a two-component unsigned integer vector representation of v.
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::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::packDouble2x32
GLM_FUNC_DECL double packDouble2x32(uvec2 const &v)
Returns a double-qualifier value obtained by packing the components of v into a 64-bit value...
glm::unpackSnorm4x8
GLM_FUNC_DECL vec4 unpackSnorm4x8(uint 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::unpackHalf2x16
GLM_FUNC_DECL vec2 unpackHalf2x16(uint v)
Returns a two-component floating-point vector with components obtained by unpacking a 32-bit unsigned...
glm::unpackUnorm2x16
GLM_FUNC_DECL vec2 unpackUnorm2x16(uint 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:538
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::uint
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:288
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...