API update

main
cosmonaut 2022-06-24 12:02:07 -07:00
parent 313a4f0660
commit 95315da684
1 changed files with 11 additions and 0 deletions

View File

@ -69,6 +69,14 @@ namespace Silkworm2CS
public float BottomUV;
};
public struct Rectangle
{
public float X;
public float Y;
public float W;
public float H;
}
[StructLayout(LayoutKind.Sequential)]
public struct Vertex
{
@ -142,6 +150,9 @@ namespace Silkworm2CS
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public unsafe static extern void Silkworm_DestroyNodesInRadius(float x, float y, float radius);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public unsafe static extern void Silkworm_DestroyNodesInRectangle(in Rectangle rectangle);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public unsafe static extern IntPtr Silkworm_FindClothInRadius(float x, float y, float radius);