40 typedef float lowp_float_t;
41 typedef float mediump_float_t;
42 typedef double highp_float_t;
68 #if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
69 typedef mediump_float float_t;
70 #elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
71 typedef highp_float float_t;
72 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
73 typedef mediump_float float_t;
74 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
75 typedef lowp_float float_t;
77 # error "GLM error: multiple default precision requested for floating-point types"
85 #ifndef GLM_STATIC_ASSERT_NULL
86 GLM_STATIC_ASSERT(
sizeof(
glm::float32) == 4,
"float32 size isn't 4 bytes on this platform");
87 GLM_STATIC_ASSERT(
sizeof(
glm::float64) == 8,
"float64 size isn't 8 bytes on this platform");
88 #endif//GLM_STATIC_ASSERT_NULL
highp_float_t highp_float
High precision floating-point numbers.
double float64
Default 64 bit double-precision floating-point scalar.
OpenGL Mathematics (glm.g-truc.net)
lowp_float_t lowp_float
Low precision floating-point numbers.
float float32
Default 32 bit single-precision floating-point scalar.
mediump_float_t mediump_float
Medium precision floating-point numbers.