mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
104
Brutal.Jolt/Generated/PInvoke/Skeleton.gen.cs
Normal file
104
Brutal.Jolt/Generated/PInvoke/Skeleton.gen.cs
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
// <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 = "Skeleton_Create")]
|
||||
public static partial Skeleton Skeleton_Create();
|
||||
|
||||
/// <inheritdoc cref="Skeleton.GetJointCount()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "Skeleton_GetJointCount")]
|
||||
public static partial int Skeleton_GetJointCount(Skeleton self);
|
||||
|
||||
/// <inheritdoc cref="Skeleton.AddJoint(RefString8, RefString8)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "Skeleton_AddJoint")]
|
||||
public static partial uint Skeleton_AddJoint(Skeleton self, byte* name, byte* parentName);
|
||||
|
||||
/// <inheritdoc cref="Skeleton.AddJoint(RefString8, int)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "Skeleton_AddJoint_2")]
|
||||
public static partial uint Skeleton_AddJoint_2(
|
||||
Skeleton self,
|
||||
byte* name,
|
||||
int parentIndex,
|
||||
out uint outBufferCheck
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="Skeleton.GetJointIndex(RefString8)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "Skeleton_GetJointIndex")]
|
||||
public static partial int Skeleton_GetJointIndex(Skeleton self, byte* name);
|
||||
|
||||
/// <inheritdoc cref="Skeleton.CalculateParentJointIndices()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "Skeleton_CalculateParentJointIndices")]
|
||||
public static partial void Skeleton_CalculateParentJointIndices(Skeleton self);
|
||||
|
||||
/// <inheritdoc cref="Skeleton.AreJointsCorrectlyOrdered()"/>
|
||||
[LibraryImport("jolt", EntryPoint = "Skeleton_AreJointsCorrectlyOrdered")]
|
||||
public static partial Brutal.Bool8 Skeleton_AreJointsCorrectlyOrdered(Skeleton self);
|
||||
|
||||
/// <inheritdoc cref="Skeleton.SaveBinaryState(StreamOut)"/>
|
||||
[LibraryImport("jolt", EntryPoint = "Skeleton_SaveBinaryState")]
|
||||
public static partial void Skeleton_SaveBinaryState(Skeleton self, StreamOut stream);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Restore the state of this object from inStream.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Skeleton/Skeleton.h#L65">Jolt/Skeleton/Skeleton.h:65</see>
|
||||
/// <br/>
|
||||
/// <c>static SkeletonResult 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 = "Skeleton_RestoreFromBinaryState")]
|
||||
public static partial Skeleton Skeleton_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 = "Skeleton_SaveObjectStream")]
|
||||
public static partial nuint Skeleton_SaveObjectStream(
|
||||
Skeleton 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 = "Skeleton_RestoreFromObjectStream")]
|
||||
public static partial Skeleton Skeleton_RestoreFromObjectStream(byte* data, nuint dataCount);
|
||||
|
||||
[LibraryImport("jolt", EntryPoint = "Skeleton_AddRef")]
|
||||
public static partial void Skeleton_AddRef(Skeleton self);
|
||||
|
||||
[LibraryImport("jolt", EntryPoint = "Skeleton_Release")]
|
||||
public static partial void Skeleton_Release(Skeleton self);
|
||||
|
||||
[LibraryImport("jolt", EntryPoint = "Skeleton_GetRefCount")]
|
||||
public static partial uint Skeleton_GetRefCount(Skeleton self);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue