1.0.2 API documentation: scalar_uint_sized.hpp Source File

| 1.0.2 API documentation

scalar_uint_sized.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 #include "../detail/setup.hpp"
16
17 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
18 # pragma message("GLM: GLM_EXT_scalar_uint_sized extension included")
19 #endif
20
21 namespace glm{
22 namespace detail
23 {
24 # if GLM_HAS_EXTENDED_INTEGER_TYPE
25 typedef std::uint8_t uint8;
26 typedef std::uint16_t uint16;
27 typedef std::uint32_t uint32;
28 # else
29 typedef unsigned char uint8;
30 typedef unsigned short uint16;
31 typedef unsigned int uint32;
32 #endif
33
34 template<>
35 struct is_int<uint8>
36 {
37 enum test {value = ~0};
38 };
39
40 template<>
41 struct is_int<uint16>
42 {
43 enum test {value = ~0};
44 };
45
46 template<>
47 struct is_int<uint64>
48 {
49 enum test {value = ~0};
50 };
51 }//namespace detail
52
53
56
58 typedef detail::uint8 uint8;
59
61 typedef detail::uint16 uint16;
62
64 typedef detail::uint32 uint32;
65
67 typedef detail::uint64 uint64;
68
70 }//namespace glm
glm::uint32
detail::uint32 uint32
32 bit unsigned integer type.
Definition: scalar_uint_sized.hpp:64
glm::uint16_t
uint16 uint16_t
Default qualifier 16 bit unsigned integer type.
Definition: fwd.hpp:117
glm::uint64
detail::uint64 uint64
64 bit unsigned integer type.
Definition: scalar_uint_sized.hpp:67
glm::uint8
detail::uint8 uint8
8 bit unsigned integer type.
Definition: scalar_uint_sized.hpp:58
glm::uint32_t
uint32 uint32_t
Default qualifier 32 bit unsigned integer type.
Definition: fwd.hpp:131
glm::uint8_t
uint8 uint8_t
Default qualifier 8 bit unsigned integer type.
Definition: fwd.hpp:103
glm::uint16
detail::uint16 uint16
16 bit unsigned integer type.
Definition: scalar_uint_sized.hpp:61