mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,79 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonMapper.h#L13">Jolt/Skeleton/SkeletonMapper.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>class SkeletonMapper : public RefTarget<SkeletonMapper></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Class that is able to map a low detail (ragdoll) skeleton to a high detail (animation) skeleton and vice
|
||||
/// versa
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct SkeletonMapper : IDisposable
|
||||
{
|
||||
public static SkeletonMapper Create() => Jolt.PInvoke.SkeletonMapper_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonMapper.h#L68">Jolt/Skeleton/SkeletonMapper.h:68</see>
|
||||
/// <br/>
|
||||
/// <c>static bool sDefaultCanMapJoint(const Skeleton *inSkeleton1, int inIndex1, const Skeleton *inSkeleton2, int inIndex2)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Default function that checks if the names of the joints are equal
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static bool sDefaultCanMapJoint(Skeleton skeleton1, int index1, Skeleton skeleton2, int index2) => Jolt.PInvoke.SkeletonMapper_sDefaultCanMapJoint(skeleton1, index1, skeleton2, index2);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonMapper.h#L115">Jolt/Skeleton/SkeletonMapper.h:115</see>
|
||||
/// <br/>
|
||||
/// <c>int GetMappedJointIdx(int inJoint1Idx) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Search through the directly mapped joints (mMappings) and find inJoint1Idx, returns the corresponding
|
||||
/// Joint2Idx or -1 if not found.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public int GetMappedJointIdx(int joint1Idx) => Jolt.PInvoke.SkeletonMapper_GetMappedJointIdx(this, joint1Idx);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonMapper.h#L118">Jolt/Skeleton/SkeletonMapper.h:118</see>
|
||||
/// <br/>
|
||||
/// <c>bool IsJointTranslationLocked(int inJoint2Idx) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Search through the locked translations (mLockedTranslations) and find if joint inJoint2Idx is locked.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool IsJointTranslationLocked(int joint2Idx) => Jolt.PInvoke.SkeletonMapper_IsJointTranslationLocked(this, joint2Idx);
|
||||
public void AddRef() => Jolt.PInvoke.SkeletonMapper_AddRef(this);
|
||||
public void Release() => Jolt.PInvoke.SkeletonMapper_Release(this);
|
||||
public uint GetRefCount() => Jolt.PInvoke.SkeletonMapper_GetRefCount(this);
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull()) return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue