29 #ifndef glm_core_type_half 30 #define glm_core_type_half 39 float toFloat32(hdata value);
40 hdata toFloat16(
float const & value);
49 GLM_FUNC_DECL half(half
const & s);
52 GLM_FUNC_DECL
explicit half(U
const & s);
56 GLM_FUNC_DECL
operator U()
const;
59 GLM_FUNC_DECL half& operator= (half
const & s);
60 GLM_FUNC_DECL half& operator+=(half
const & s);
61 GLM_FUNC_DECL half& operator-=(half
const & s);
62 GLM_FUNC_DECL half& operator*=(half
const & s);
63 GLM_FUNC_DECL half& operator/=(half
const & s);
64 GLM_FUNC_DECL half& operator++();
65 GLM_FUNC_DECL half& operator--();
67 GLM_FUNC_DECL
float toFloat()
const{
return toFloat32(data);}
69 GLM_FUNC_DECL hdata _data()
const{
return data;}
86 half operator-- (
half const & s,
int);
88 half operator++ (
half const & s,
int);
119 #endif//glm_core_type_half Definition: _detail.hpp:38
OpenGL Mathematics (glm.g-truc.net)
16-bit floating point type.
Definition: type_half.hpp:44