mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,59 @@
|
|||
// <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>
|
||||
/// BroadPhaseLayerInterface implementation. This defines a mapping between object and broadphase layers. This
|
||||
/// implementation uses a simple table
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseLayerInterfaceTable.h#L14">Jolt/Physics/Collision/BroadPhase/BroadPhaseLayerInterfaceTable.h:14</see>
|
||||
/// <br/>
|
||||
/// <c>class BroadPhaseLayerInterfaceTable : public BroadPhaseLayerInterface</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct BroadPhaseLayerInterfaceTable : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseLayerInterfaceTable.h#L19">Jolt/Physics/Collision/BroadPhase/BroadPhaseLayerInterfaceTable.h:19</see>
|
||||
/// <br/>
|
||||
/// <c>BroadPhaseLayerInterfaceTable(uint inNumObjectLayers, uint inNumBroadPhaseLayers)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static BroadPhaseLayerInterfaceTable Create(uint numObjectLayers, uint numBroadPhaseLayers) =>
|
||||
Jolt.PInvoke.BroadPhaseLayerInterfaceTable_Create(numObjectLayers, numBroadPhaseLayers);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseLayerInterfaceTable.h#L28">Jolt/Physics/Collision/BroadPhase/BroadPhaseLayerInterfaceTable.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>void MapObjectToBroadPhaseLayer(ObjectLayer inObjectLayer, BroadPhaseLayer inBroadPhaseLayer)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void MapObjectToBroadPhaseLayer(ushort objectLayer, byte broadPhaseLayer) =>
|
||||
Jolt.PInvoke.BroadPhaseLayerInterfaceTable_MapObjectToBroadPhaseLayer(this, objectLayer, broadPhaseLayer);
|
||||
|
||||
/// <inheritdoc cref="BroadPhaseLayerInterface.GetNumBroadPhaseLayers()"/>
|
||||
public uint GetNumBroadPhaseLayers() => ((BroadPhaseLayerInterface)this).GetNumBroadPhaseLayers();
|
||||
|
||||
/// <inheritdoc cref="BroadPhaseLayerInterface.GetBroadPhaseLayer(ushort)"/>
|
||||
public byte GetBroadPhaseLayer(ushort layer) => ((BroadPhaseLayerInterface)this).GetBroadPhaseLayer(layer);
|
||||
|
||||
public static implicit operator BroadPhaseLayerInterface(BroadPhaseLayerInterfaceTable value) =>
|
||||
Unsafe.BitCast<BroadPhaseLayerInterfaceTable, BroadPhaseLayerInterface>(value);
|
||||
|
||||
public void Dispose() => Jolt.PInvoke.BroadPhaseLayerInterfaceTable_Destroy(this);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue