mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
223 lines
12 KiB
C#
223 lines
12 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
|
|
{
|
|
/// <inheritdoc cref="BodyManager.Init(uint, uint, BroadPhaseLayerInterface)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_Init")]
|
|
public static partial void BodyManager_Init(
|
|
BodyManager self,
|
|
uint maxBodies,
|
|
uint numBodyMutexes,
|
|
BroadPhaseLayerInterface layerInterface
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetNumBodies()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetNumBodies")]
|
|
public static partial uint BodyManager_GetNumBodies(BodyManager self);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetMaxBodies()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetMaxBodies")]
|
|
public static partial uint BodyManager_GetMaxBodies(BodyManager self);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetBodyStats()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBodyStats")]
|
|
public static partial void BodyManager_GetBodyStats(BodyManager self, out BodyManager.BodyStats outResult);
|
|
|
|
/// <inheritdoc cref="BodyManager.AllocateBody(BodyCreationSettings)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_AllocateBody")]
|
|
public static partial Body BodyManager_AllocateBody(
|
|
BodyManager self,
|
|
BodyCreationSettings bodyCreationSettings
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyManager.AllocateSoftBody(SoftBodyCreationSettings)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_AllocateSoftBody")]
|
|
public static partial Body BodyManager_AllocateSoftBody(
|
|
BodyManager self,
|
|
SoftBodyCreationSettings softBodyCreationSettings
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyManager.FreeBody(Body)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_FreeBody")]
|
|
public static partial void BodyManager_FreeBody(BodyManager self, Body body);
|
|
|
|
/// <inheritdoc cref="BodyManager.AddBody(Body)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_AddBody")]
|
|
public static partial Brutal.Bool8 BodyManager_AddBody(BodyManager self, Body body);
|
|
|
|
/// <inheritdoc cref="BodyManager.AddBodyWithCustomID(Body, uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_AddBodyWithCustomID")]
|
|
public static partial Brutal.Bool8 BodyManager_AddBodyWithCustomID(
|
|
BodyManager self,
|
|
Body body,
|
|
uint bodyID
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyManager.RemoveBodies(ReadOnlySpan{uint}, Ptr{Body})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_RemoveBodies")]
|
|
public static partial void BodyManager_RemoveBodies(
|
|
BodyManager self,
|
|
uint* bodyIDs,
|
|
int number,
|
|
Body* bodies
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyManager.DestroyBodies(ReadOnlySpan{uint})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_DestroyBodies")]
|
|
public static partial void BodyManager_DestroyBodies(BodyManager self, uint* bodyIDs, int number);
|
|
|
|
/// <inheritdoc cref="BodyManager.ActivateBodies(ReadOnlySpan{uint})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_ActivateBodies")]
|
|
public static partial void BodyManager_ActivateBodies(BodyManager self, uint* bodyIDs, int number);
|
|
|
|
/// <inheritdoc cref="BodyManager.DeactivateBodies(ReadOnlySpan{uint})"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_DeactivateBodies")]
|
|
public static partial void BodyManager_DeactivateBodies(BodyManager self, uint* bodyIDs, int number);
|
|
|
|
/// <inheritdoc cref="BodyManager.SetMotionQuality(Body, MotionQuality)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_SetMotionQuality")]
|
|
public static partial void BodyManager_SetMotionQuality(
|
|
BodyManager self,
|
|
Body body,
|
|
MotionQuality motionQuality
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetActiveBodies(BodyType)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetActiveBodies")]
|
|
public static partial void BodyManager_GetActiveBodies(BodyManager self, BodyType type, out nint bodyIDs);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get copy of the list of active bodies under protection of a lock.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Body/BodyManager.h#L117">Jolt/Physics/Body/BodyManager.h:117</see>
|
|
/// <br/>
|
|
/// <c>void GetActiveBodies(EBodyType inType, BodyIDVector &outBodyIDs) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Copies the contents into results, which you allocate and size - the allocation-free form of the
|
|
/// NativeArray overload beside this one. Returns how many elements were written; totalHits is how many
|
|
/// there were, so a larger span is needed when it exceeds the span's length.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetActiveBodies_2")]
|
|
public static partial uint BodyManager_GetActiveBodies_2(
|
|
BodyManager self,
|
|
BodyType type,
|
|
uint* buffer,
|
|
uint capacity
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetNumActiveBodies(BodyType)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetNumActiveBodies")]
|
|
public static partial uint BodyManager_GetNumActiveBodies(BodyManager self, BodyType type);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetNumActiveCCDBodies()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetNumActiveCCDBodies")]
|
|
public static partial uint BodyManager_GetNumActiveCCDBodies(BodyManager self);
|
|
|
|
/// <inheritdoc cref="BodyManager.SetBodyActivationListener(BodyActivationListener)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_SetBodyActivationListener")]
|
|
public static partial void BodyManager_SetBodyActivationListener(
|
|
BodyManager self,
|
|
BodyActivationListener listener
|
|
);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetBodyActivationListener()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBodyActivationListener")]
|
|
public static partial BodyActivationListener BodyManager_GetBodyActivationListener(BodyManager self);
|
|
|
|
/// <inheritdoc cref="BodyManager.IsValidBodyPointer(Body)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_IsValidBodyPointer")]
|
|
public static partial Brutal.Bool8 BodyManager_IsValidBodyPointer(Body body);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetBodies()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBodies")]
|
|
public static partial void BodyManager_GetBodies(BodyManager self, out NativeSpanView outResult);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetBodyIDs()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBodyIDs")]
|
|
public static partial void BodyManager_GetBodyIDs(BodyManager self, out nint bodies);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get all body IDs under the protection of a lock
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Body/BodyManager.h#L142">Jolt/Physics/Body/BodyManager.h:142</see>
|
|
/// <br/>
|
|
/// <c>void GetBodyIDs(BodyIDVector &outBodies) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Copies the contents into results, which you allocate and size - the allocation-free form of the
|
|
/// NativeArray overload beside this one. Returns how many elements were written; totalHits is how many
|
|
/// there were, so a larger span is needed when it exceeds the span's length.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBodyIDs_2")]
|
|
public static partial uint BodyManager_GetBodyIDs_2(BodyManager self, uint* buffer, uint capacity);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetBody(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBody")]
|
|
public static partial Body BodyManager_GetBody(BodyManager self, uint id);
|
|
|
|
/// <inheritdoc cref="BodyManager.TryGetBody(uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_TryGetBody")]
|
|
public static partial Body BodyManager_TryGetBody(BodyManager self, uint id);
|
|
|
|
/// <inheritdoc cref="BodyManager.LockAllBodies()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_LockAllBodies")]
|
|
public static partial void BodyManager_LockAllBodies(BodyManager self);
|
|
|
|
/// <inheritdoc cref="BodyManager.UnlockAllBodies()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_UnlockAllBodies")]
|
|
public static partial void BodyManager_UnlockAllBodies(BodyManager self);
|
|
|
|
/// <inheritdoc cref="BodyManager.InvalidateContactCacheForBody(Body)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_InvalidateContactCacheForBody")]
|
|
public static partial void BodyManager_InvalidateContactCacheForBody(BodyManager self, Body body);
|
|
|
|
/// <inheritdoc cref="BodyManager.ValidateContactCacheForAllBodies()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_ValidateContactCacheForAllBodies")]
|
|
public static partial void BodyManager_ValidateContactCacheForAllBodies(BodyManager self);
|
|
|
|
/// <inheritdoc cref="BodyManager.GetBroadPhaseLayerInterface()"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_GetBroadPhaseLayerInterface")]
|
|
public static partial BroadPhaseLayerInterface BodyManager_GetBroadPhaseLayerInterface(BodyManager self);
|
|
|
|
/// <inheritdoc cref="BodyManager.SaveBodyState(Body, StateRecorder)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_SaveBodyState")]
|
|
public static partial void BodyManager_SaveBodyState(BodyManager self, Body body, StateRecorder stream);
|
|
|
|
/// <inheritdoc cref="BodyManager.RestoreBodyState(Body, StateRecorder)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_RestoreBodyState")]
|
|
public static partial void BodyManager_RestoreBodyState(BodyManager self, Body body, StateRecorder stream);
|
|
|
|
/// <inheritdoc cref="BodyManager.Draw(in BodyManager.DrawSettings, in PhysicsSettings, DebugRenderer, BodyDrawFilter)"/>
|
|
[LibraryImport("jolt", EntryPoint = "BodyManager_Draw")]
|
|
public static partial void BodyManager_Draw(
|
|
BodyManager self,
|
|
in BodyManager.DrawSettings settings,
|
|
in PhysicsSettings physicsSettings,
|
|
DebugRenderer renderer,
|
|
BodyDrawFilter bodyFilter
|
|
);
|
|
}
|
|
}
|
|
}
|