mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
52 lines
2.2 KiB
C#
52 lines
2.2 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>
|
|
/// Interface that the application should implement to allow mapping object layers to broadphase layers
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h#L60">Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h:60</see>
|
|
/// <br/>
|
|
/// <c>class BroadPhaseLayerInterface : public NonCopyable</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct BroadPhaseLayerInterface
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Return the number of broadphase layers there are
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h#L67">Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h:67</see>
|
|
/// <br/>
|
|
/// <c>virtual uint GetNumBroadPhaseLayers() const = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetNumBroadPhaseLayers() => Jolt.PInvoke.BroadPhaseLayerInterface_GetNumBroadPhaseLayers(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Convert an object layer to the corresponding broadphase layer
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h#L70">Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h:70</see>
|
|
/// <br/>
|
|
/// <c>virtual BroadPhaseLayer GetBroadPhaseLayer(ObjectLayer inLayer) const = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public byte GetBroadPhaseLayer(ushort layer) =>
|
|
Jolt.PInvoke.BroadPhaseLayerInterface_GetBroadPhaseLayer(this, layer);
|
|
}
|
|
}
|