0.9.9 API documentation: packing.hpp Source File

| 0.9.9 API documentation

- Main Page
- Modules
- Files

- File List

packing.hpp
Go to the documentation of this file.
1
16 #pragma once
17
18 #include "./ext/vector_uint2.hpp"
19 #include "./ext/vector_float2.hpp"
20 #include "./ext/vector_float4.hpp"
21
22 namespace glm
23 {
26
38 GLM_FUNC_DECL uint packUnorm2x16(vec2 const& v);
39
51 GLM_FUNC_DECL uint packSnorm2x16(vec2 const& v);
52
64 GLM_FUNC_DECL uint packUnorm4x8(vec4 const& v);
65
77 GLM_FUNC_DECL uint packSnorm4x8(vec4 const& v);
78
90 GLM_FUNC_DECL vec2 unpackUnorm2x16(uint p);
91
103 GLM_FUNC_DECL vec2 unpackSnorm2x16(uint p);
104
116 GLM_FUNC_DECL vec4 unpackUnorm4x8(uint p);
117
129 GLM_FUNC_DECL vec4 unpackSnorm4x8(uint p);
130
139 GLM_FUNC_DECL double packDouble2x32(uvec2 const& v);
140
148 GLM_FUNC_DECL uvec2 unpackDouble2x32(double v);
149
158 GLM_FUNC_DECL uint packHalf2x16(vec2 const& v);
159
168 GLM_FUNC_DECL vec2 unpackHalf2x16(uint v);
169
171 }//namespace glm
172
173 #include "detail/func_packing.inl"
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::vec2
vec< 2, float, defaultp > vec2
2 components vector of single-precision floating-point numbers.
Definition: vector_float2.hpp:15
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::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::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::unpackDouble2x32
GLM_FUNC_DECL uvec2 unpackDouble2x32(double v)
Returns a two-component unsigned integer vector representation of v.
glm::vec4
vec< 4, float, defaultp > vec4
4 components vector of single-precision floating-point numbers.
Definition: vector_float4.hpp:15
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::uvec2
vec< 2, unsigned int, defaultp > uvec2
2 components vector of unsigned integer numbers.
Definition: vector_uint2.hpp:15
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...
vector_float4.hpp
Core features
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::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::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::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...
vector_float2.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.
vector_uint2.hpp
Core features
glm
Definition: common.hpp:20