mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
Add ImAnim bindings
This commit is contained in:
parent
e8485dee25
commit
2b5e2893c5
43 changed files with 4852 additions and 3 deletions
28
imgui/Dalamud.Bindings.ImAnim/Structs/ImAnimEasePerAxis.cs
Normal file
28
imgui/Dalamud.Bindings.ImAnim/Structs/ImAnimEasePerAxis.cs
Normal 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 }
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue