2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-10 02:32:33 +00:00

Add generic XModel Export dumper without bone support yet

This commit is contained in:
Jan
2021-08-13 09:40:12 +02:00
parent 56ebbbcfa8
commit 767daca2ea
28 changed files with 1112 additions and 30 deletions
+11
View File
@@ -0,0 +1,11 @@
#include "QuatInt16.h"
quat_int_16 QuatInt16::ToInt16(const float quat)
{
return static_cast<quat_int_16>(quat * INT16_MAX);
}
float QuatInt16::ToFloat(const quat_int_16 quat)
{
return static_cast<float>(quat) / static_cast<float>(INT16_MAX);
}