13 # ifndef GLM_FORCE_SINGLE_ONLY
15 # endif//GLM_FORCE_SINGLE_ONLY
18 typedef float lowp_float_t;
19 typedef float mediump_float_t;
20 typedef double highp_float_t;
46 #if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
47 typedef mediump_float float_t;
48 #elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
49 typedef highp_float float_t;
50 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
51 typedef mediump_float float_t;
52 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
53 typedef lowp_float float_t;
55 # error "GLM error: multiple default precision requested for floating-point types"
60 # ifndef GLM_FORCE_SINGLE_ONLY
62 # endif//GLM_FORCE_SINGLE_ONLY
66 #ifndef GLM_STATIC_ASSERT_NULL
67 GLM_STATIC_ASSERT(
sizeof(
glm::float32) == 4,
"float32 size isn't 4 bytes on this platform");
68 # ifndef GLM_FORCE_SINGLE_ONLY
69 GLM_STATIC_ASSERT(
sizeof(
glm::float64) == 8,
"float64 size isn't 8 bytes on this platform");
70 # endif//GLM_FORCE_SINGLE_ONLY
71 #endif//GLM_STATIC_ASSERT_NULL
highp_float_t highp_float
High qualifier floating-point numbers.
mediump_float_t mediump_float
Medium qualifier floating-point numbers.
float float32
Default 32 bit single-qualifier floating-point scalar.
lowp_float_t lowp_float
Low qualifier floating-point numbers.
double float64
Default 64 bit double-qualifier floating-point scalar.