mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
98 lines
4.9 KiB
C#
98 lines
4.9 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
|
|
namespace Brutal.JoltApi
|
|
{
|
|
public static partial class Jolt
|
|
{
|
|
public static unsafe partial class PInvoke
|
|
{
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_Create")]
|
|
public static partial SkeletalAnimation SkeletalAnimation_Create();
|
|
|
|
/// <inheritdoc cref="SkeletalAnimation.GetDuration()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_GetDuration")]
|
|
public static partial float SkeletalAnimation_GetDuration(SkeletalAnimation self);
|
|
|
|
/// <inheritdoc cref="SkeletalAnimation.ScaleJoints(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_ScaleJoints")]
|
|
public static partial void SkeletalAnimation_ScaleJoints(SkeletalAnimation self, float scale);
|
|
|
|
/// <inheritdoc cref="SkeletalAnimation.SetIsLooping(bool)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_SetIsLooping")]
|
|
public static partial void SkeletalAnimation_SetIsLooping(SkeletalAnimation self, Brutal.Bool8 isLooping);
|
|
|
|
/// <inheritdoc cref="SkeletalAnimation.IsLooping()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_IsLooping")]
|
|
public static partial Brutal.Bool8 SkeletalAnimation_IsLooping(SkeletalAnimation self);
|
|
|
|
/// <inheritdoc cref="SkeletalAnimation.Sample(float, SkeletonPose)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_Sample")]
|
|
public static partial void SkeletalAnimation_Sample(SkeletalAnimation self, float time, SkeletonPose pose);
|
|
|
|
/// <inheritdoc cref="SkeletalAnimation.SaveBinaryState(StreamOut)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_SaveBinaryState")]
|
|
public static partial void SkeletalAnimation_SaveBinaryState(SkeletalAnimation self, StreamOut stream);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Restore a saved ragdoll from inStream
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Skeleton/SkeletalAnimation.h#L85">Jolt/Skeleton/SkeletalAnimation.h:85</see>
|
|
/// <br/>
|
|
/// <c>static AnimationResult sRestoreFromBinaryState(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_RestoreFromBinaryState")]
|
|
public static partial SkeletalAnimation SkeletalAnimation_RestoreFromBinaryState(StreamIn stream);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Serialises this object into buffer as a Jolt object stream and returns the total size of that
|
|
/// stream; nothing is written past the end of the buffer. Returns 0 when the object can't be written;
|
|
/// call Jolt.GetLastError() for Jolt's error message.
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_SaveObjectStream")]
|
|
public static partial nuint SkeletalAnimation_SaveObjectStream(
|
|
SkeletalAnimation self,
|
|
byte* buffer,
|
|
nuint bufferCount,
|
|
ObjectStreamType streamType
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Reads a text or binary object stream and returns a null handle when it can't be read; call
|
|
/// Jolt.GetLastError() for Jolt's error message. A truncated stream can still read back as an object
|
|
/// with null references. A non-null return carries a reference the caller owns.
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_RestoreFromObjectStream")]
|
|
public static partial SkeletalAnimation SkeletalAnimation_RestoreFromObjectStream(
|
|
byte* data,
|
|
nuint dataCount
|
|
);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_AddRef")]
|
|
public static partial void SkeletalAnimation_AddRef(SkeletalAnimation self);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_Release")]
|
|
public static partial void SkeletalAnimation_Release(SkeletalAnimation self);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "SkeletalAnimation_GetRefCount")]
|
|
public static partial uint SkeletalAnimation_GetRefCount(SkeletalAnimation self);
|
|
}
|
|
}
|
|
}
|