mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
57 lines
2.3 KiB
C#
57 lines
2.3 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/Physics/Collision/Shape/SubShapeID.h#L107">Jolt/Physics/Collision/Shape/SubShapeID.h:107</see>
|
|
/// <br/>
|
|
/// <c>class SubShapeIDCreator</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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
|
|
/// </code>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct SubShapeIDCreator : IDisposable
|
|
{
|
|
public static SubShapeIDCreator Create() => Jolt.PInvoke.SubShapeIDCreator_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SubShapeID.h#L122">Jolt/Physics/Collision/Shape/SubShapeID.h:122</see>
|
|
/// <br/>
|
|
/// <c>const SubShapeID & GetID() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the resulting sub shape ID
|
|
/// </para>
|
|
/// </remarks>
|
|
public uint GetID() => Jolt.PInvoke.SubShapeIDCreator_GetID(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/SubShapeID.h#L128">Jolt/Physics/Collision/Shape/SubShapeID.h:128</see>
|
|
/// <br/>
|
|
/// <c>inline uint GetNumBitsWritten() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the number of bits that have been written to the sub shape ID so far
|
|
/// </para>
|
|
/// </remarks>
|
|
public uint GetNumBitsWritten() => Jolt.PInvoke.SubShapeIDCreator_GetNumBitsWritten(this);
|
|
public void Dispose() => Jolt.PInvoke.SubShapeIDCreator_Destroy(this);
|
|
}
|
|
}
|