mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
188 lines
8 KiB
C#
188 lines
8 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L17">Jolt/Skeleton/SkeletonPose.h:17</see>
|
|
/// <br/>
|
|
/// <c>class SkeletonPose</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Instance of a skeleton, contains the pose the current skeleton is in
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct SkeletonPose : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L64">Jolt/Skeleton/SkeletonPose.h:64</see>
|
|
/// <br/>
|
|
/// <c>struct DrawSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Draw settings
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 3)]
|
|
public struct DrawSettings
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L66">Jolt/Skeleton/SkeletonPose.h:66</see>
|
|
/// <br/>
|
|
/// <c>bool mDrawJoints = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public Brutal.Bool8 mDrawJoints;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L67">Jolt/Skeleton/SkeletonPose.h:67</see>
|
|
/// <br/>
|
|
/// <c>bool mDrawJointOrientations = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(1)]
|
|
public Brutal.Bool8 mDrawJointOrientations;
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L68">Jolt/Skeleton/SkeletonPose.h:68</see>
|
|
/// <br/>
|
|
/// <c>bool mDrawJointNames = false</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(2)]
|
|
public Brutal.Bool8 mDrawJointNames;
|
|
}
|
|
public static SkeletonPose Create() => Jolt.PInvoke.SkeletonPose_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L28">Jolt/Skeleton/SkeletonPose.h:28</see>
|
|
/// <br/>
|
|
/// <c>void SetSkeleton(const Skeleton *inSkeleton)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Skeleton
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
public void SetSkeleton(Skeleton skeleton) => Jolt.PInvoke.SkeletonPose_SetSkeleton(this, skeleton);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L29">Jolt/Skeleton/SkeletonPose.h:29</see>
|
|
/// <br/>
|
|
/// <c>const Skeleton * GetSkeleton() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public Skeleton GetSkeleton() => Jolt.PInvoke.SkeletonPose_GetSkeleton(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L33">Jolt/Skeleton/SkeletonPose.h:33</see>
|
|
/// <br/>
|
|
/// <c>void SetRootOffset(RVec3Arg inOffset)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Extra offset applied to the root (and therefore also to all of its children)
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetRootOffset(float3 offset) => Jolt.PInvoke.SkeletonPose_SetRootOffset(this, offset);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L34">Jolt/Skeleton/SkeletonPose.h:34</see>
|
|
/// <br/>
|
|
/// <c>RVec3 GetRootOffset() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetRootOffset() => Jolt.PInvoke.SkeletonPose_GetRootOffset(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L38">Jolt/Skeleton/SkeletonPose.h:38</see>
|
|
/// <br/>
|
|
/// <c>uint GetJointCount() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Properties of the joints
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
public uint GetJointCount() => Jolt.PInvoke.SkeletonPose_GetJointCount(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L49">Jolt/Skeleton/SkeletonPose.h:49</see>
|
|
/// <br/>
|
|
/// <c>const Mat44 & GetJointMatrix(int inJoint) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float4x4 GetJointMatrix(int joint) => Jolt.PInvoke.SkeletonPose_GetJointMatrix(this, joint);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L54">Jolt/Skeleton/SkeletonPose.h:54</see>
|
|
/// <br/>
|
|
/// <c>void CalculateJointMatrices()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Convert the joint states to joint matrices
|
|
/// </para>
|
|
/// </remarks>
|
|
public void CalculateJointMatrices() => Jolt.PInvoke.SkeletonPose_CalculateJointMatrices(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L57">Jolt/Skeleton/SkeletonPose.h:57</see>
|
|
/// <br/>
|
|
/// <c>void CalculateJointStates()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Convert joint matrices to joint states
|
|
/// </para>
|
|
/// </remarks>
|
|
public void CalculateJointStates() => Jolt.PInvoke.SkeletonPose_CalculateJointStates(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Skeleton/SkeletonPose.h#L72">Jolt/Skeleton/SkeletonPose.h:72</see>
|
|
/// <br/>
|
|
/// <c>void Draw(const DrawSettings &inDrawSettings, DebugRenderer *inRenderer, RMat44Arg inOffset = RMat44::sIdentity()) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Draw current pose
|
|
/// </para>
|
|
/// </remarks>
|
|
public void Draw(ref SkeletonPose.DrawSettings drawSettings, DebugRenderer renderer, float4x4 offset) => Jolt.PInvoke.SkeletonPose_Draw(this, ref drawSettings, renderer, offset);
|
|
public void Dispose() => Jolt.PInvoke.SkeletonPose_Destroy(this);
|
|
}
|
|
}
|