Added ufbx warper

This commit is contained in:
2026-03-15 02:19:40 +09:00
parent cce1cf7256
commit 3e4084c42a
232 changed files with 10989 additions and 55 deletions

View File

@@ -0,0 +1,25 @@
namespace Ghost.Ufbx;
public unsafe struct Keyframe
{
private ufbx_keyframe* _ptr;
internal Keyframe(ufbx_keyframe* ptr)
{
_ptr = ptr;
}
public bool IsNull => _ptr == null;
public double Time => _ptr->time;
public float Value => _ptr->value;
public ufbx_interpolation Interpolation => _ptr->interpolation;
public Tangent Left => new((ufbx_tangent*)System.Runtime.CompilerServices.Unsafe.AsPointer(ref _ptr->left));
public Tangent Right => new((ufbx_tangent*)System.Runtime.CompilerServices.Unsafe.AsPointer(ref _ptr->right));
internal ufbx_keyframe* GetUnsafePtr() => _ptr;
}