brutal/brutal.jolt/Brutal.Jolt/Generated/PInvoke/BroadPhase.gen.cs
2026-10-15 14:12:02 +13:00

144 lines
7.7 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
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L32">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:32</see>
/// <br/>
/// <c>virtual void Init(BodyManager *inBodyManager, const BroadPhaseLayerInterface &amp;inLayerInterface)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Initialize the broadphase.
/// @param inBodyManager The body manager singleton
/// @param inLayerInterface Interface that maps object layers to broadphase layers.
/// Note that the broadphase takes a pointer to the data inside inObjectToBroadPhaseLayer so this object should remain static.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_Init")]
public static partial void BroadPhase_Init(BroadPhase self, BodyManager bodyManager, BroadPhaseLayerInterface layerInterface);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L35">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:35</see>
/// <br/>
/// <c>virtual void Optimize()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Should be called after many objects have been inserted to make the broadphase more efficient,
/// usually done on startup only
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_Optimize")]
public static partial void BroadPhase_Optimize(BroadPhase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L38">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:38</see>
/// <br/>
/// <c>virtual void FrameSync()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Must be called just before updating the broadphase when none of the body mutexes are locked
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_FrameSync")]
public static partial void BroadPhase_FrameSync(BroadPhase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L41">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:41</see>
/// <br/>
/// <c>virtual void LockModifications()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Must be called before UpdatePrepare to prevent modifications from being made to the tree
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_LockModifications")]
public static partial void BroadPhase_LockModifications(BroadPhase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L54">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:54</see>
/// <br/>
/// <c>virtual void UnlockModifications()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Must be called after UpdateFinalize to allow modifications to the broadphase
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_UnlockModifications")]
public static partial void BroadPhase_UnlockModifications(BroadPhase self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L75">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:75</see>
/// <br/>
/// <c>virtual void RemoveBodies(BodyID *ioBodies, int inNumber) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Remove inNumber bodies in ioBodies from the broadphase.
/// ioBodies may be shuffled around by this function.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_RemoveBodies")]
public static partial void BroadPhase_RemoveBodies(BroadPhase self, uint* bodies, int number);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L79">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:79</see>
/// <br/>
/// <c>virtual void NotifyBodiesAABBChanged(BodyID *ioBodies, int inNumber, bool inTakeLock = true) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Call whenever the aabb of a body changes (can change order of ioBodies array)
/// inTakeLock should be false if we're between LockModifications/UnlockModifications, in which case care needs to be taken to not call this between UpdatePrepare/UpdateFinalize
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_NotifyBodiesAABBChanged")]
public static partial void BroadPhase_NotifyBodiesAABBChanged(BroadPhase self, uint* bodies, int number, Brutal.Bool8 takeLock);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/BroadPhase/BroadPhase.h#L82">Jolt/Physics/Collision/BroadPhase/BroadPhase.h:82</see>
/// <br/>
/// <c>virtual void NotifyBodiesLayerChanged(BodyID *ioBodies, int inNumber) = 0</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Call whenever the layer (and optionally the aabb as well) of a body changes (can change order of
/// ioBodies array)
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "BroadPhase_NotifyBodiesLayerChanged")]
public static partial void BroadPhase_NotifyBodiesLayerChanged(BroadPhase self, uint* bodies, int number);
[LibraryImport("jolt", EntryPoint = "BroadPhase_AsBroadPhaseQuery")]
public static partial BroadPhaseQuery BroadPhase_AsBroadPhaseQuery(BroadPhase self);
}
}
}