mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-14 16:57:58 -05:00
Add generic XModel Export dumper without bone support yet
This commit is contained in:
14
src/Common/Utils/HalfFloat.h
Normal file
14
src/Common/Utils/HalfFloat.h
Normal file
@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
typedef uint16_t half_float_t;
|
||||
|
||||
class HalfFloat
|
||||
{
|
||||
HalfFloat() = default;
|
||||
|
||||
public:
|
||||
static float ToFloat(half_float_t half);
|
||||
static half_float_t ToHalf(float f);
|
||||
};
|
Reference in New Issue
Block a user