//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeID.h:107
///
/// class SubShapeIDCreator
///
///
///
///
/// 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
///
///
[InteropHandle]
public readonly partial struct SubShapeIDCreator : IDisposable
{
public static SubShapeIDCreator Create() => Jolt.PInvoke.SubShapeIDCreator_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeID.h:122
///
/// const SubShapeID & GetID() const
///
///
///
///
/// Get the resulting sub shape ID
///
///
public uint GetID() => Jolt.PInvoke.SubShapeIDCreator_GetID(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeID.h:128
///
/// inline uint GetNumBitsWritten() const
///
///
///
///
/// Get the number of bits that have been written to the sub shape ID so far
///
///
public uint GetNumBitsWritten() => Jolt.PInvoke.SubShapeIDCreator_GetNumBitsWritten(this);
public void Dispose() => Jolt.PInvoke.SubShapeIDCreator_Destroy(this);
}
}