| 0.9.6

- Main Page
- Modules
- Files

- File List

func_packing.hpp
Go to the documentation of this file.
1
41 #pragma once
42
43 #include "type_vec2.hpp"
44 #include "type_vec4.hpp"
45
46 namespace glm
47 {
50
62 GLM_FUNC_DECL uint packUnorm2x16(vec2 const & v);
63
75 GLM_FUNC_DECL uint packSnorm2x16(vec2 const & v);
76
88 GLM_FUNC_DECL uint packUnorm4x8(vec4 const & v);
89
101 GLM_FUNC_DECL uint packSnorm4x8(vec4 const & v);
102
114 GLM_FUNC_DECL vec2 unpackUnorm2x16(uint const & p);
115
127 GLM_FUNC_DECL vec2 unpackSnorm2x16(uint const & p);
128
140 GLM_FUNC_DECL vec4 unpackUnorm4x8(uint const & p);
141
153 GLM_FUNC_DECL vec4 unpackSnorm4x8(uint const & p);
154
163 GLM_FUNC_DECL double packDouble2x32(uvec2 const & v);
164
172 GLM_FUNC_DECL uvec2 unpackDouble2x32(double const & v);
173
182 GLM_FUNC_DECL uint packHalf2x16(vec2 const & v);
183
192 GLM_FUNC_DECL vec2 unpackHalf2x16(uint const & v);
193
195 }//namespace glm
196
197 #include "func_packing.inl"
glm::vec4
highp_vec4 vec4
4 components vector of floating-point numbers.
Definition: type_vec.hpp:402
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...
type_vec4.hpp
OpenGL Mathematics (glm.g-truc.net)
glm::uint
unsigned int uint
Unsigned integer type.
Definition: type_int.hpp:306
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::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::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::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::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::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::uvec2
highp_uvec2 uvec2
2 components vector of unsigned integer numbers.
Definition: type_vec.hpp:476
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
Definition: _noise.hpp:39
type_vec2.hpp
OpenGL Mathematics (glm.g-truc.net)
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::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:392
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::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.