//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// A sub shape id creator can be used to create a new sub shape id by recursing through the shape hierarchy and
/// pushing new ID's onto the chain
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeID.h:107
///
/// class SubShapeIDCreator
///
///
[InteropHandle]
public readonly partial struct SubShapeIDCreator : IDisposable
{
public static SubShapeIDCreator Create() => Jolt.PInvoke.SubShapeIDCreator_Create();
///
///
/// Add a new id to the chain of id's and return it
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeID.h:111
///
/// SubShapeIDCreator PushID(uint inValue, uint inBits) const
///
///
///
///
/// The returned handle is an owned copy; Dispose it when you're done with it.
///
///
public SubShapeIDCreator PushID(uint value, uint bits) =>
Jolt.PInvoke.SubShapeIDCreator_PushID(this, value, bits);
///
///
/// Get the resulting sub shape ID
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeID.h:122
///
/// const SubShapeID & GetID() const
///
///
public uint GetID() => Jolt.PInvoke.SubShapeIDCreator_GetID(this);
///
///
/// Get the number of bits that have been written to the sub shape ID so far
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeID.h:128
///
/// inline uint GetNumBitsWritten() const
///
///
public uint GetNumBitsWritten() => Jolt.PInvoke.SubShapeIDCreator_GetNumBitsWritten(this);
public void Dispose() => Jolt.PInvoke.SubShapeIDCreator_Destroy(this);
}
}