mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
75 lines
3 KiB
C#
75 lines
3 KiB
C#
// <auto-generated/>
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeID.h#L107">Jolt/Physics/Collision/Shape/SubShapeID.h:107</see>
|
|
/// <br/>
|
|
/// <c>class SubShapeIDCreator</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct SubShapeIDCreator : IDisposable
|
|
{
|
|
public static SubShapeIDCreator Create() => Jolt.PInvoke.SubShapeIDCreator_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Add a new id to the chain of id's and return it
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeID.h#L111">Jolt/Physics/Collision/Shape/SubShapeID.h:111</see>
|
|
/// <br/>
|
|
/// <c>SubShapeIDCreator PushID(uint inValue, uint inBits) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is an owned copy; Dispose it when you're done with it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public SubShapeIDCreator PushID(uint value, uint bits) =>
|
|
Jolt.PInvoke.SubShapeIDCreator_PushID(this, value, bits);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get the resulting sub shape ID
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeID.h#L122">Jolt/Physics/Collision/Shape/SubShapeID.h:122</see>
|
|
/// <br/>
|
|
/// <c>const SubShapeID & GetID() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetID() => Jolt.PInvoke.SubShapeIDCreator_GetID(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get the number of bits that have been written to the sub shape ID so far
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/SubShapeID.h#L128">Jolt/Physics/Collision/Shape/SubShapeID.h:128</see>
|
|
/// <br/>
|
|
/// <c>inline uint GetNumBitsWritten() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetNumBitsWritten() => Jolt.PInvoke.SubShapeIDCreator_GetNumBitsWritten(this);
|
|
|
|
public void Dispose() => Jolt.PInvoke.SubShapeIDCreator_Destroy(this);
|
|
}
|
|
}
|