Add ImAnim bindings

This commit is contained in:
Haselnussbomber 2025-12-08 21:25:32 +01:00
parent e8485dee25
commit 2b5e2893c5
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1
43 changed files with 4852 additions and 3 deletions

View file

@ -0,0 +1,28 @@
using System.Runtime.InteropServices;
namespace Dalamud.Bindings.ImAnim;
[StructLayout(LayoutKind.Sequential)]
public struct ImAnimEasePerAxis
{
public ImAnimEaseDesc X;
public ImAnimEaseDesc Y;
public ImAnimEaseDesc Z;
public ImAnimEaseDesc W;
public static ImAnimEasePerAxis From(ImAnimEaseDesc all) => new()
{
X = all,
Y = all,
Z = all,
W = all
};
public static ImAnimEasePerAxis From(ImAnimEaseDesc ex, ImAnimEaseDesc ey) => new()
{
X = ex,
Y = ey,
Z = new ImAnimEaseDesc { Type = ImAnimEaseType.Linear },
W = new ImAnimEaseDesc { Type = ImAnimEaseType.Linear }
};
}