mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
110 lines
5.6 KiB
C#
110 lines
5.6 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 = "LargeIslandSplitter_Create")]
|
|
public static partial LargeIslandSplitter LargeIslandSplitter_Create();
|
|
[LibraryImport("jolt", EntryPoint = "LargeIslandSplitter_Destroy")]
|
|
public static partial void LargeIslandSplitter_Destroy(LargeIslandSplitter self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/LargeIslandSplitter.h#L139">Jolt/Physics/LargeIslandSplitter.h:139</see>
|
|
/// <br/>
|
|
/// <c>void Prepare(const IslandBuilder &inIslandBuilder, uint32 inNumActiveBodies, TempAllocator *inTempAllocator)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Prepare the island splitter by allocating memory
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "LargeIslandSplitter_Prepare")]
|
|
public static partial void LargeIslandSplitter_Prepare(LargeIslandSplitter self, IslandBuilder islandBuilder, uint numActiveBodies, TempAllocator tempAllocator);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/LargeIslandSplitter.h#L142">Jolt/Physics/LargeIslandSplitter.h:142</see>
|
|
/// <br/>
|
|
/// <c>uint AssignSplit(const Body *inBody1, const Body *inBody2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Assign two bodies to a split. Returns the split index.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "LargeIslandSplitter_AssignSplit")]
|
|
public static partial uint LargeIslandSplitter_AssignSplit(LargeIslandSplitter self, Body body1, Body body2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/LargeIslandSplitter.h#L145">Jolt/Physics/LargeIslandSplitter.h:145</see>
|
|
/// <br/>
|
|
/// <c>uint AssignToNonParallelSplit(const Body *inBody)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Force a body to be in a non parallel split. Returns the split index.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "LargeIslandSplitter_AssignToNonParallelSplit")]
|
|
public static partial uint LargeIslandSplitter_AssignToNonParallelSplit(LargeIslandSplitter self, Body body);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/LargeIslandSplitter.h#L157">Jolt/Physics/LargeIslandSplitter.h:157</see>
|
|
/// <br/>
|
|
/// <c>inline uint32 GetIslandIndex(uint inSplitIslandIndex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the island index of the island that was split for a particular split island index
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "LargeIslandSplitter_GetIslandIndex")]
|
|
public static partial uint LargeIslandSplitter_GetIslandIndex(LargeIslandSplitter self, uint splitIslandIndex);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/LargeIslandSplitter.h#L164">Jolt/Physics/LargeIslandSplitter.h:164</see>
|
|
/// <br/>
|
|
/// <c>void PrepareForSolvePositions()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Prepare the island splitter for iterating over the split islands again for position solving. Marks
|
|
/// all batches as startable.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "LargeIslandSplitter_PrepareForSolvePositions")]
|
|
public static partial void LargeIslandSplitter_PrepareForSolvePositions(LargeIslandSplitter self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/LargeIslandSplitter.h#L167">Jolt/Physics/LargeIslandSplitter.h:167</see>
|
|
/// <br/>
|
|
/// <c>void Reset(TempAllocator *inTempAllocator)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Reset the island splitter
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "LargeIslandSplitter_Reset")]
|
|
public static partial void LargeIslandSplitter_Reset(LargeIslandSplitter self, TempAllocator tempAllocator);
|
|
}
|
|
}
|
|
}
|