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

179 lines
9.4 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
{
[LibraryImport("jolt", EntryPoint = "IslandBuilder_Create")]
public static partial IslandBuilder IslandBuilder_Create();
[LibraryImport("jolt", EntryPoint = "IslandBuilder_Destroy")]
public static partial void IslandBuilder_Destroy(IslandBuilder self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L25">Jolt/Physics/IslandBuilder.h:25</see>
/// <br/>
/// <c>void Init(uint32 inMaxActiveBodies)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Initialize the island builder with the maximum amount of bodies that could be active
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_Init")]
public static partial void IslandBuilder_Init(IslandBuilder self, uint maxActiveBodies);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L28">Jolt/Physics/IslandBuilder.h:28</see>
/// <br/>
/// <c>void PrepareContactConstraints(uint32 inMaxContactConstraints, TempAllocator *inTempAllocator)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Prepare for simulation step by allocating space for the contact constraints
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_PrepareContactConstraints")]
public static partial void IslandBuilder_PrepareContactConstraints(IslandBuilder self, uint maxContactConstraints, TempAllocator tempAllocator);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L31">Jolt/Physics/IslandBuilder.h:31</see>
/// <br/>
/// <c>void PrepareNonContactConstraints(uint32 inNumConstraints, TempAllocator *inTempAllocator)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Prepare for simulation step by allocating space for the non-contact constraints
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_PrepareNonContactConstraints")]
public static partial void IslandBuilder_PrepareNonContactConstraints(IslandBuilder self, uint numConstraints, TempAllocator tempAllocator);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L34">Jolt/Physics/IslandBuilder.h:34</see>
/// <br/>
/// <c>void LinkBodies(uint32 inFirst, uint32 inSecond)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Link two bodies by their index in the BodyManager::mActiveBodies list to form islands
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_LinkBodies")]
public static partial void IslandBuilder_LinkBodies(IslandBuilder self, uint first, uint second);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L37">Jolt/Physics/IslandBuilder.h:37</see>
/// <br/>
/// <c>void LinkConstraint(uint32 inConstraintIndex, uint32 inFirst, uint32 inSecond)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Link a constraint to a body by their index in the BodyManager::mActiveBodies
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_LinkConstraint")]
public static partial void IslandBuilder_LinkConstraint(IslandBuilder self, uint constraintIndex, uint first, uint second);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L40">Jolt/Physics/IslandBuilder.h:40</see>
/// <br/>
/// <c>void LinkContact(uint32 inContactIndex, uint32 inFirst, uint32 inSecond)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Link a contact to a body by their index in the BodyManager::mActiveBodies
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_LinkContact")]
public static partial void IslandBuilder_LinkContact(IslandBuilder self, uint contactIndex, uint first, uint second);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L43">Jolt/Physics/IslandBuilder.h:43</see>
/// <br/>
/// <c>void Finalize(const BodyID *inActiveBodies, uint32 inNumActiveBodies, uint32 inNumContacts, TempAllocator *inTempAllocator)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Finalize the islands after all bodies have been Link()-ed
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_Complete")]
public static partial void IslandBuilder_Complete(IslandBuilder self, uint* activeBodies, uint numActiveBodies, uint numContacts, TempAllocator tempAllocator);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L46">Jolt/Physics/IslandBuilder.h:46</see>
/// <br/>
/// <c>uint32 GetNumIslands() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the amount of islands formed
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_GetNumIslands")]
public static partial uint IslandBuilder_GetNumIslands(IslandBuilder self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L54">Jolt/Physics/IslandBuilder.h:54</see>
/// <br/>
/// <c>void SetNumPositionSteps(uint32 inIslandIndex, uint inNumPositionSteps)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The number of position iterations for each island
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_SetNumPositionSteps")]
public static partial void IslandBuilder_SetNumPositionSteps(IslandBuilder self, uint islandIndex, uint numPositionSteps);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L55">Jolt/Physics/IslandBuilder.h:55</see>
/// <br/>
/// <c>uint GetNumPositionSteps(uint32 inIslandIndex) const</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_GetNumPositionSteps")]
public static partial uint IslandBuilder_GetNumPositionSteps(IslandBuilder self, uint islandIndex);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/IslandBuilder.h#L73">Jolt/Physics/IslandBuilder.h:73</see>
/// <br/>
/// <c>void ResetIslands(TempAllocator *inTempAllocator)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// After you're done calling the three functions above, call this function to free associated data
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "IslandBuilder_ResetIslands")]
public static partial void IslandBuilder_ResetIslands(IslandBuilder self, TempAllocator tempAllocator);
}
}
}