Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef glm_core_type_float
00030 #define glm_core_type_float
00031
00032 #include "type_half.hpp"
00033 #include "setup.hpp"
00034
00035 namespace glm
00036 {
00037 #ifdef GLM_USE_HALF_SCALAR
00038 typedef detail::half lowp_float_t;
00039 #else//GLM_USE_HALF_SCALAR
00040 typedef float lowp_float_t;
00041 #endif//GLM_USE_HALF_SCALAR
00042 typedef float mediump_float_t;
00043 typedef double highp_float_t;
00044
00049 typedef lowp_float_t lowp_float;
00050
00055 typedef mediump_float_t mediump_float;
00056
00061 typedef highp_float_t highp_float;
00062
00063 #if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
00064 typedef mediump_float float_t;
00065 #elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
00066 typedef highp_float float_t;
00067 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
00068 typedef mediump_float float_t;
00069 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
00070 typedef lowp_float float_t;
00071 #else
00072 # error "GLM error: multiple default precision requested for floating-point types"
00073 #endif
00074
00075 }
00076
00077 #endif//glm_core_type_float