15 typedef float lowp_float_t;
16 typedef float mediump_float_t;
17 typedef double highp_float_t;
43 #if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
44 typedef mediump_float float_t;
45 #elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
46 typedef highp_float float_t;
47 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
48 typedef mediump_float float_t;
49 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
50 typedef lowp_float float_t;
52 # error "GLM error: multiple default precision requested for floating-point types"
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
float float32
Default 32 bit single-precision floating-point scalar.
double float64
Default 64 bit double-precision floating-point scalar.
lowp_float_t lowp_float
Low precision floating-point numbers.
highp_float_t highp_float
High precision floating-point numbers.
mediump_float_t mediump_float
Medium precision floating-point numbers.