harfang3d/harfang/foundation/half_float.h
2021-10-13 14:40:31 +02:00

13 lines
285 B
C++

// HARFANG(R) Copyright (C) 2021 Emmanuel Julien, NWNC HARFANG. Released under GPL/LGPL/Commercial Licence, see licence.txt for details.
#pragma once
namespace hg {
using hfloat = unsigned short;
hfloat float_to_hfloat(float v);
float hfloat_to_float(hfloat v);
} // namespace hg