50 #include "../gtc/quaternion.hpp"
51 #include "../gtc/vec1.hpp"
52 #include "../vec2.hpp"
53 #include "../vec3.hpp"
54 #include "../vec4.hpp"
55 #include "../mat2x2.hpp"
56 #include "../mat2x3.hpp"
57 #include "../mat2x4.hpp"
58 #include "../mat3x2.hpp"
59 #include "../mat3x3.hpp"
60 #include "../mat3x4.hpp"
61 #include "../mat4x2.hpp"
62 #include "../mat4x3.hpp"
63 #include "../mat4x4.hpp"
65 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
66 # pragma message("GLM: GLM_GTC_type_precision extension included")
224 typedef detail::int8 int8;
228 typedef detail::int16 int16;
232 typedef detail::int32 int32;
236 typedef detail::int64 int64;
238 #if GLM_HAS_EXTENDED_INTEGER_TYPE
244 typedef detail::int8
int8_t;
263 typedef detail::int8
i8;
267 typedef detail::int16
i16;
271 typedef detail::int32
i32;
275 typedef detail::int64
i64;
280 typedef tvec1<i8, defaultp>
i8vec1;
284 typedef tvec2<i8, defaultp>
i8vec2;
288 typedef tvec3<i8, defaultp>
i8vec3;
292 typedef tvec4<i8, defaultp>
i8vec4;
297 typedef tvec1<i16, defaultp>
i16vec1;
301 typedef tvec2<i16, defaultp>
i16vec2;
305 typedef tvec3<i16, defaultp>
i16vec3;
309 typedef tvec4<i16, defaultp>
i16vec4;
314 typedef tvec1<i32, defaultp>
i32vec1;
318 typedef tvec2<i32, defaultp>
i32vec2;
322 typedef tvec3<i32, defaultp>
i32vec3;
326 typedef tvec4<i32, defaultp>
i32vec4;
331 typedef tvec1<i64, defaultp>
i64vec1;
335 typedef tvec2<i64, defaultp>
i64vec2;
339 typedef tvec3<i64, defaultp>
i64vec3;
343 typedef tvec4<i64, defaultp>
i64vec4;
495 typedef detail::uint8 uint8;
499 typedef detail::uint16 uint16;
503 typedef detail::uint32 uint32;
507 typedef detail::uint64 uint64;
509 #if GLM_HAS_EXTENDED_INTEGER_TYPE
534 typedef detail::uint8
u8;
538 typedef detail::uint16
u16;
542 typedef detail::uint32
u32;
546 typedef detail::uint64
u64;
552 typedef tvec1<u8, defaultp>
u8vec1;
556 typedef tvec2<u8, defaultp>
u8vec2;
560 typedef tvec3<u8, defaultp>
u8vec3;
564 typedef tvec4<u8, defaultp>
u8vec4;
569 typedef tvec1<u16, defaultp>
u16vec1;
573 typedef tvec2<u16, defaultp>
u16vec2;
577 typedef tvec3<u16, defaultp>
u16vec3;
581 typedef tvec4<u16, defaultp>
u16vec4;
586 typedef tvec1<u32, defaultp>
u32vec1;
590 typedef tvec2<u32, defaultp>
u32vec2;
594 typedef tvec3<u32, defaultp>
u32vec3;
598 typedef tvec4<u32, defaultp>
u32vec4;
603 typedef tvec1<u64, defaultp>
u64vec1;
607 typedef tvec2<u64, defaultp>
u64vec2;
611 typedef tvec3<u64, defaultp>
u64vec3;
615 typedef tvec4<u64, defaultp>
u64vec4;
623 typedef detail::float32 float32;
627 typedef detail::float64 float64;
650 typedef tvec1<float, defaultp>
fvec1;
654 typedef tvec2<float, defaultp>
fvec2;
658 typedef tvec3<float, defaultp>
fvec3;
662 typedef tvec4<float, defaultp>
fvec4;
667 typedef tvec1<f32, defaultp>
f32vec1;
671 typedef tvec2<f32, defaultp>
f32vec2;
675 typedef tvec3<f32, defaultp>
f32vec3;
679 typedef tvec4<f32, defaultp>
f32vec4;
684 typedef tvec1<f64, defaultp>
f64vec1;
688 typedef tvec2<f64, defaultp>
f64vec2;
692 typedef tvec3<f64, defaultp>
f64vec3;
696 typedef tvec4<f64, defaultp>
f64vec4;
708 typedef tmat2x2<f32, defaultp>
fmat2;
712 typedef tmat3x3<f32, defaultp>
fmat3;
716 typedef tmat4x4<f32, defaultp>
fmat4;
725 typedef tmat2x2<f32, defaultp>
fmat2x2;
729 typedef tmat2x3<f32, defaultp>
fmat2x3;
733 typedef tmat2x4<f32, defaultp>
fmat2x4;
737 typedef tmat3x2<f32, defaultp>
fmat3x2;
741 typedef tmat3x3<f32, defaultp>
fmat3x3;
745 typedef tmat3x4<f32, defaultp>
fmat3x4;
749 typedef tmat4x2<f32, defaultp>
fmat4x2;
753 typedef tmat4x3<f32, defaultp>
fmat4x3;
757 typedef tmat4x4<f32, defaultp>
fmat4x4;
766 typedef tmat2x2<f32, defaultp>
f32mat2;
770 typedef tmat3x3<f32, defaultp>
f32mat3;
774 typedef tmat4x4<f32, defaultp>
f32mat4;
783 typedef tmat2x2<f32, defaultp>
f32mat2x2;
787 typedef tmat2x3<f32, defaultp>
f32mat2x3;
791 typedef tmat2x4<f32, defaultp>
f32mat2x4;
795 typedef tmat3x2<f32, defaultp>
f32mat3x2;
799 typedef tmat3x3<f32, defaultp>
f32mat3x3;
803 typedef tmat3x4<f32, defaultp>
f32mat3x4;
807 typedef tmat4x2<f32, defaultp>
f32mat4x2;
811 typedef tmat4x3<f32, defaultp>
f32mat4x3;
815 typedef tmat4x4<f32, defaultp>
f32mat4x4;
824 typedef tmat2x2<f64, defaultp>
f64mat2;
828 typedef tmat3x3<f64, defaultp>
f64mat3;
832 typedef tmat4x4<f64, defaultp>
f64mat4;
841 typedef tmat2x2<f64, defaultp>
f64mat2x2;
845 typedef tmat2x3<f64, defaultp>
f64mat2x3;
849 typedef tmat2x4<f64, defaultp>
f64mat2x4;
853 typedef tmat3x2<f64, defaultp>
f64mat3x2;
857 typedef tmat3x3<f64, defaultp>
f64mat3x3;
861 typedef tmat3x4<f64, defaultp>
f64mat3x4;
865 typedef tmat4x2<f64, defaultp>
f64mat4x2;
869 typedef tmat4x3<f64, defaultp>
f64mat4x3;
873 typedef tmat4x4<f64, defaultp>
f64mat4x4;
881 typedef tquat<f32, defaultp>
f32quat;
885 typedef tquat<f64, defaultp>
f64quat;
890 #include "type_precision.inl"
detail::int8 highp_int8
High precision 8 bit signed integer type.
detail::uint64 lowp_uint64
Low precision 64 bit unsigned integer type.
highp_i16vec4 i16vec4
Default precision 16 bit signed integer vector of 4 components type.
highp_f32vec2 f32vec2
Default single-precision floating-point vector of 2 components.
detail::uint8 lowp_uint8_t
Low precision 8 bit unsigned integer type.
detail::int16 highp_i16
High precision 16 bit signed integer type.
highp_f32mat3x4 f32mat3x4
Default single-precision floating-point 3x4 matrix.
detail::uint64 uint64_t
64 bit unsigned integer type.
highp_f32mat4x2 f32mat4x2
Default single-precision floating-point 4x2 matrix.
highp_u16vec1 u16vec1
Default precision 16 bit unsigned integer scalar type.
highp_f32vec1 fvec1
Default single-precision floating-point vector of 1 components.
detail::uint16 highp_u16
Medium precision 16 bit unsigned integer type.
highp_i32vec1 i32vec1
Default precision 32 bit signed integer scalar type.
detail::int16 mediump_int16
Medium precision 16 bit signed integer type.
highp_float64_t float64_t
Default 64 bit double-precision floating-point scalar.
detail::uint32 lowp_u32
Low precision 32 bit unsigned integer type.
highp_u64vec2 u64vec2
Default precision 64 bit unsigned integer vector of 2 components type.
highp_i16vec2 i16vec2
Default precision 16 bit signed integer vector of 2 components type.
detail::uint32 uint32_t
32 bit unsigned integer type.
detail::int32 int32_t
32 bit signed integer type.
highp_u16vec2 u16vec2
Default precision 16 bit unsigned integer vector of 2 components type.
highp_f32mat4x4 f32mat4x4
Default single-precision floating-point 4x4 matrix.
highp_i32vec4 i32vec4
Default precision 32 bit signed integer vector of 4 components type.
highp_f32mat3x2 fmat3x2
Default single-precision floating-point 3x2 matrix.
detail::uint64 mediump_uint64
Medium precision 64 bit unsigned integer type.
highp_u64vec1 u64vec1
Default precision 64 bit unsigned integer scalar type.
detail::int64 lowp_i64
Low precision 64 bit signed integer type.
detail::int32 highp_int32_t
32 bit signed integer type.
detail::int64 lowp_int64
Low precision 64 bit signed integer type.
detail::int16 lowp_int16_t
Low precision 16 bit signed integer type.
detail::int32 lowp_int32
Low precision 32 bit signed integer type.
detail::uint8 lowp_u8
Low precision 8 bit unsigned integer type.
detail::uint16 mediump_uint16_t
Medium precision 16 bit unsigned integer type.
highp_f32mat3x2 f32mat3x2
Default single-precision floating-point 3x2 matrix.
detail::uint8 u8
8 bit unsigned integer type.
detail::uint16 uint16_t
16 bit unsigned integer type.
detail::uint8 highp_uint8_t
Medium precision 8 bit unsigned integer type.
highp_f64mat4x2 f64mat4x2
Default double-precision floating-point 4x2 matrix.
highp_i32vec3 i32vec3
Default precision 32 bit signed integer vector of 3 components type.
highp_f32mat4x4 fmat4x4
Default single-precision floating-point 4x4 matrix.
highp_u8vec1 u8vec1
Default precision 8 bit unsigned integer scalar type.
detail::int8 lowp_i8
Low precision 8 bit signed integer type.
detail::int8 highp_i8
High precision 8 bit signed integer type.
highp_f32mat3x3 f32mat3x3
Default single-precision floating-point 3x3 matrix.
detail::int16 lowp_i16
Low precision 16 bit signed integer type.
detail::int64 highp_i64
High precision 64 bit signed integer type.
highp_f32vec3 fvec3
Default single-precision floating-point vector of 3 components.
highp_u32vec4 u32vec4
Default precision 32 bit unsigned integer vector of 4 components type.
detail::int16 int16_t
16 bit signed integer type.
highp_i16vec3 i16vec3
Default precision 16 bit signed integer vector of 3 components type.
detail::int16 highp_int16
High precision 16 bit signed integer type.
detail::int8 lowp_int8
Low precision 8 bit signed integer type.
detail::int16 lowp_int16
Low precision 16 bit signed integer type.
highp_f64vec2 f64vec2
Default double-precision floating-point vector of 2 components.
detail::int64 i64
64 bit signed integer type.
detail::int64 mediump_int64_t
Medium precision 64 bit signed integer type.
highp_f64mat2x4 f64mat2x4
Default double-precision floating-point 2x4 matrix.
detail::uint32 mediump_uint32
Medium precision 32 bit unsigned integer type.
f32mat3x3 f32mat3
Default single-precision floating-point 3x3 matrix.
detail::uint8 mediump_u8
Medium precision 8 bit unsigned integer type.
detail::uint64 u64
64 bit unsigned integer type.
highp_u64vec3 u64vec3
Default precision 64 bit unsigned integer vector of 3 components type.
highp_f64quat f64quat
Default double-precision floating-point quaternion.
highp_f32mat2x3 f32mat2x3
Default single-precision floating-point 2x3 matrix.
detail::uint64 highp_u64
Medium precision 64 bit unsigned integer type.
detail::int64 highp_int64
High precision 64 bit signed integer type.
detail::uint32 mediump_u32
Medium precision 32 bit unsigned integer type.
detail::int8 mediump_int8
Medium precision 8 bit signed integer type.
fmat3x3 fmat3
Default single-precision floating-point 3x3 matrix.
f32mat2x2 f32mat2
Default single-precision floating-point 2x2 matrix.
detail::uint32 mediump_uint32_t
Medium precision 32 bit unsigned integer type.
detail::uint8 mediump_uint8
Medium precision 8 bit unsigned integer type.
highp_f32vec3 f32vec3
Default single-precision floating-point vector of 3 components.
highp_f32mat4x3 f32mat4x3
Default single-precision floating-point 4x3 matrix.
highp_f32mat2x4 f32mat2x4
Default single-precision floating-point 2x4 matrix.
highp_f64vec4 f64vec4
Default double-precision floating-point vector of 4 components.
detail::uint8 mediump_uint8_t
Medium precision 8 bit unsigned integer type.
detail::uint16 u16
16 bit unsigned integer type.
detail::uint32 u32
32 bit unsigned integer type.
highp_f32mat4x2 fmat4x2
Default single-precision floating-point 4x2 matrix.
fmat2x2 fmat2
Default single-precision floating-point 2x2 matrix.
f64mat3x3 f64mat3
Default double-precision floating-point 3x3 matrix.
detail::int8 mediump_i8
Medium precision 8 bit signed integer type.
highp_f64mat3x3 f64mat3x3
Default double-precision floating-point 3x3 matrix.
detail::int16 mediump_int16_t
Medium precision 16 bit signed integer type.
detail::uint16 mediump_uint16
Medium precision 16 bit unsigned integer type.
detail::int32 highp_i32
High precision 32 bit signed integer type.
highp_i64vec2 i64vec2
Default precision 64 bit signed integer vector of 2 components type.
highp_i8vec2 i8vec2
Default precision 8 bit signed integer vector of 2 components type.
highp_float32_t float32_t
Default 32 bit single-precision floating-point scalar.
detail::uint8 lowp_uint8
Low precision 8 bit unsigned integer type.
highp_u8vec3 u8vec3
Default precision 8 bit unsigned integer vector of 3 components type.
detail::uint32 highp_u32
Medium precision 32 bit unsigned integer type.
highp_f32mat3x3 fmat3x3
Default single-precision floating-point 3x3 matrix.
highp_i8vec4 i8vec4
Default precision 8 bit signed integer vector of 4 components type.
highp_float64_t f64
Default 64 bit double-precision floating-point scalar.
highp_u64vec4 u64vec4
Default precision 64 bit unsigned integer vector of 4 components type.
detail::uint32 highp_uint32
Medium precision 32 bit unsigned integer type.
detail::uint64 mediump_uint64_t
Medium precision 64 bit unsigned integer type.
highp_f64mat2x3 f64mat2x3
Default double-precision floating-point 2x3 matrix.
highp_u16vec3 u16vec3
Default precision 16 bit unsigned integer vector of 3 components type.
detail::uint8 highp_u8
Medium precision 8 bit unsigned integer type.
detail::int32 lowp_int32_t
Low precision 32 bit signed integer type.
detail::int8 mediump_int8_t
Medium precision 8 bit signed integer type.
highp_i64vec1 i64vec1
Default precision 64 bit signed integer scalar type.
highp_i8vec1 i8vec1
Default precision 8 bit signed integer scalar type.
detail::uint32 highp_uint32_t
Medium precision 32 bit unsigned integer type.
highp_f32vec2 fvec2
Default single-precision floating-point vector of 2 components.
highp_float32_t f32
Default 32 bit single-precision floating-point scalar.
detail::int8 lowp_int8_t
Low precision 8 bit signed integer type.
highp_f32vec4 f32vec4
Default single-precision floating-point vector of 4 components.
f32mat4x4 f32mat4
Default single-precision floating-point 4x4 matrix.
detail::int64 mediump_int64
Medium precision 64 bit signed integer type.
detail::uint64 mediump_u64
Medium precision 64 bit unsigned integer type.
highp_f32mat2x2 fmat2x2
Default single-precision floating-point 2x2 matrix.
highp_i64vec3 i64vec3
Default precision 64 bit signed integer vector of 3 components type.
detail::uint64 lowp_uint64_t
Low precision 64 bit unsigned integer type.
highp_u32vec1 u32vec1
Default precision 32 bit unsigned integer scalar type.
detail::int64 int64_t
64 bit signed integer type.
detail::int32 i32
32 bit signed integer type.
detail::uint32 lowp_uint32_t
Low precision 32 bit unsigned integer type.
highp_f32mat2x2 f32mat2x2
Default single-precision floating-point 2x2 matrix.
highp_f32quat f32quat
Default single-precision floating-point quaternion.
detail::int16 i16
16 bit signed integer type.
highp_u8vec4 u8vec4
Default precision 8 bit unsigned integer vector of 4 components type.
highp_i64vec4 i64vec4
Default precision 64 bit signed integer vector of 4 components type.
detail::int64 highp_int64_t
High precision 64 bit signed integer type.
detail::uint16 highp_uint16
Medium precision 16 bit unsigned integer type.
f64mat2x2 f64mat2
Default double-precision floating-point 2x2 matrix.
detail::int64 lowp_int64_t
Low precision 64 bit signed integer type.
detail::int16 highp_int16_t
High precision 16 bit signed integer type.
detail::int32 mediump_i32
Medium precision 32 bit signed integer type.
detail::uint8 highp_uint8
Medium precision 8 bit unsigned integer type.
detail::int8 highp_int8_t
High precision 8 bit signed integer type.
detail::int8 int8_t
8 bit signed integer type.
highp_u32vec3 u32vec3
Default precision 32 bit unsigned integer vector of 3 components type.
highp_i16vec1 i16vec1
Default precision 16 bit signed integer scalar type.
detail::uint64 lowp_u64
Low precision 64 bit unsigned integer type.
highp_f32vec1 f32vec1
Default single-precision floating-point vector of 1 components.
highp_f32mat4x3 fmat4x3
Default single-precision floating-point 4x3 matrix.
detail::int64 mediump_i64
Medium precision 64 bit signed integer type.
highp_f64mat4x4 f64mat4x4
Default double-precision floating-point 4x4 matrix.
detail::uint16 lowp_uint16_t
Low precision 16 bit unsigned integer type.
f64mat4x4 f64mat4
Default double-precision floating-point 4x4 matrix.
highp_f64mat3x2 f64mat3x2
Default double-precision floating-point 3x2 matrix.
highp_f64mat3x4 f64mat3x4
Default double-precision floating-point 3x4 matrix.
detail::uint16 lowp_u16
Low precision 16 bit unsigned integer type.
fmat4x4 fmat4
Default single-precision floating-point 4x4 matrix.
detail::uint64 highp_uint64
Medium precision 64 bit unsigned integer type.
detail::uint16 lowp_uint16
Low precision 16 bit unsigned integer type.
detail::int8 i8
8 bit signed integer type.
highp_f64vec3 f64vec3
Default double-precision floating-point vector of 3 components.
highp_u16vec4 u16vec4
Default precision 16 bit unsigned integer vector of 4 components type.
highp_f32mat3x4 fmat3x4
Default single-precision floating-point 3x4 matrix.
highp_f32vec4 fvec4
Default single-precision floating-point vector of 4 components.
detail::int32 highp_int32
High precision 32 bit signed integer type.
highp_u8vec2 u8vec2
Default precision 8 bit unsigned integer vector of 2 components type.
detail::int32 mediump_int32
Medium precision 32 bit signed integer type.
detail::int32 mediump_int32_t
Medium precision 32 bit signed integer type.
detail::int32 lowp_i32
Low precision 32 bit signed integer type.
detail::uint8 uint8_t
8 bit unsigned integer type.
highp_i8vec3 i8vec3
Default precision 8 bit signed integer vector of 3 components type.
detail::uint64 highp_uint64_t
Medium precision 64 bit unsigned integer type.
detail::uint32 lowp_uint32
Low precision 32 bit unsigned integer type.
highp_f64mat2x2 f64mat2x2
Default double-precision floating-point 2x2 matrix.
detail::uint16 mediump_u16
Medium precision 16 bit unsigned integer type.
detail::uint16 highp_uint16_t
Medium precision 16 bit unsigned integer type.
highp_f32mat2x3 fmat2x3
Default single-precision floating-point 2x3 matrix.
highp_f64mat4x3 f64mat4x3
Default double-precision floating-point 4x3 matrix.
highp_f32mat2x4 fmat2x4
Default single-precision floating-point 2x4 matrix.
highp_f64vec1 f64vec1
Default double-precision floating-point vector of 1 components.
highp_i32vec2 i32vec2
Default precision 32 bit signed integer vector of 2 components type.
detail::int16 mediump_i16
Medium precision 16 bit signed integer type.
highp_u32vec2 u32vec2
Default precision 32 bit unsigned integer vector of 2 components type.