// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:17 ///
/// class SkeletonPose ///
///
/// /// /// Instance of a skeleton, contains the pose the current skeleton is in /// /// [InteropHandle] public readonly partial struct SkeletonPose : IDisposable { /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:64 ///
/// struct DrawSettings ///
///
/// /// /// Draw settings /// /// [StructLayout(LayoutKind.Explicit, Size = 3)] public struct DrawSettings { /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:66 ///
/// bool mDrawJoints = true ///
///
[FieldOffset(0)] public Brutal.Bool8 mDrawJoints; /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:67 ///
/// bool mDrawJointOrientations = true ///
///
[FieldOffset(1)] public Brutal.Bool8 mDrawJointOrientations; /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:68 ///
/// bool mDrawJointNames = false ///
///
[FieldOffset(2)] public Brutal.Bool8 mDrawJointNames; } public static SkeletonPose Create() => Jolt.PInvoke.SkeletonPose_Create(); /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:28 ///
/// void SetSkeleton(const Skeleton *inSkeleton) ///
///
/// /// /// @name Skeleton /// @{ /// /// public void SetSkeleton(Skeleton skeleton) => Jolt.PInvoke.SkeletonPose_SetSkeleton(this, skeleton); /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:29 ///
/// const Skeleton * GetSkeleton() const ///
///
public Skeleton GetSkeleton() => Jolt.PInvoke.SkeletonPose_GetSkeleton(this); /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:33 ///
/// void SetRootOffset(RVec3Arg inOffset) ///
///
/// /// /// Extra offset applied to the root (and therefore also to all of its children) /// /// public void SetRootOffset(float3 offset) => Jolt.PInvoke.SkeletonPose_SetRootOffset(this, offset); /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:34 ///
/// RVec3 GetRootOffset() const ///
///
public float3 GetRootOffset() => Jolt.PInvoke.SkeletonPose_GetRootOffset(this); /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:38 ///
/// uint GetJointCount() const ///
///
/// /// /// @name Properties of the joints /// @{ /// /// public uint GetJointCount() => Jolt.PInvoke.SkeletonPose_GetJointCount(this); /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:49 ///
/// const Mat44 & GetJointMatrix(int inJoint) const ///
///
public float4x4 GetJointMatrix(int joint) => Jolt.PInvoke.SkeletonPose_GetJointMatrix(this, joint); /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:54 ///
/// void CalculateJointMatrices() ///
///
/// /// /// Convert the joint states to joint matrices /// /// public void CalculateJointMatrices() => Jolt.PInvoke.SkeletonPose_CalculateJointMatrices(this); /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:57 ///
/// void CalculateJointStates() ///
///
/// /// /// Convert joint matrices to joint states /// /// public void CalculateJointStates() => Jolt.PInvoke.SkeletonPose_CalculateJointStates(this); /// /// /// C++: /// Jolt/Skeleton/SkeletonPose.h:72 ///
/// void Draw(const DrawSettings &inDrawSettings, DebugRenderer *inRenderer, RMat44Arg inOffset = RMat44::sIdentity()) const ///
///
/// /// /// Draw current pose /// /// 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); } }