3rdparty/glm/doc/api/a00110_source.html
| | 0.9.8 |
type_float.hpp
Go to the documentation of this file.
1
4 #pragma once
5
6 #include "setup.hpp"
7
8 namespace glm{
9 namespace detail
10 {
11typedef floatfloat32;
12typedef doublefloat64;
13 }//namespace detail
14
15typedef float lowp_float_t;
16typedef float mediump_float_t;
17typedef double highp_float_t;
18
21
27typedef lowp_float_t lowp_float;
28
34typedef mediump_float_t mediump_float;
35
41typedef highp_float_t highp_float;
42
43 #if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
44typedef mediump_float float_t;
45 #elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
46typedef highp_float float_t;
47 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
48typedef mediump_float float_t;
49 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
50typedef lowp_float float_t;
51 #else
52 # error "GLM error: multiple default precision requested for floating-point types"
53 #endif
54
57
59 // check type sizes
60 #ifndef GLM_STATIC_ASSERT_NULL
61 GLM_STATIC_ASSERT(sizeof(glm::float32) == 4, "float32 size isn't 4 bytes on this platform");
62 GLM_STATIC_ASSERT(sizeof(glm::float64) == 8, "float64 size isn't 8 bytes on this platform");
63 #endif//GLM_STATIC_ASSERT_NULL
64
66
67 }//namespace glm
float float32
Default 32 bit single-precision floating-point scalar.
Definition: type_float.hpp:55
double float64
Default 64 bit double-precision floating-point scalar.
Definition: type_float.hpp:56
Definition: _noise.hpp:11
lowp_float_t lowp_float
Low precision floating-point numbers.
Definition: type_float.hpp:27
highp_float_t highp_float
High precision floating-point numbers.
Definition: type_float.hpp:41
GLM Core
mediump_float_t mediump_float
Medium precision floating-point numbers.
Definition: type_float.hpp:34
Generated by 1.8.10