29 #ifndef glm_core_type_float
30 #define glm_core_type_float
41 typedef float lowp_float_t;
42 typedef float mediump_float_t;
43 typedef double highp_float_t;
69 #if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
71 #elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
73 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
75 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
78 # error "GLM error: multiple default precision requested for floating-point types"
86 #ifndef GLM_STATIC_ASSERT_NULL
87 GLM_STATIC_ASSERT(
sizeof(
glm::float32) == 4,
"float32 size isn't 4 bytes on this platform");
88 GLM_STATIC_ASSERT(
sizeof(
glm::float64) == 8,
"float64 size isn't 8 bytes on this platform");
89 #endif//GLM_STATIC_ASSERT_NULL
95 #endif//glm_core_type_float
float float32
Default 32 bit single-precision floating-point scalar.
highp_float_t highp_float
High precision floating-point numbers.
mediump_float_t mediump_float
Medium precision floating-point numbers.
lowp_float_t lowp_float
Low precision floating-point numbers.
double float64
Default 64 bit double-precision floating-point scalar.