mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
287 lines
15 KiB
C#
287 lines
15 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 = "SoftBodySharedSettings_Create")]
|
|
public static partial SoftBodySharedSettings SoftBodySharedSettings_Create();
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.CreateConstraints(ReadOnlySpan{SoftBodySharedSettings.VertexAttributes}, SoftBodySharedSettings.BendType, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CreateConstraints")]
|
|
public static partial void SoftBodySharedSettings_CreateConstraints(
|
|
SoftBodySharedSettings self,
|
|
SoftBodySharedSettings.VertexAttributes* vertexAttributes,
|
|
uint vertexAttributesLength,
|
|
SoftBodySharedSettings.BendType bendType,
|
|
float angleTolerance
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.CalculateEdgeLengths()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateEdgeLengths")]
|
|
public static partial void SoftBodySharedSettings_CalculateEdgeLengths(SoftBodySharedSettings self);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.CalculateRodProperties()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateRodProperties")]
|
|
public static partial void SoftBodySharedSettings_CalculateRodProperties(SoftBodySharedSettings self);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.CalculateLRALengths(float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateLRALengths")]
|
|
public static partial void SoftBodySharedSettings_CalculateLRALengths(
|
|
SoftBodySharedSettings self,
|
|
float maxDistanceMultiplier
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.CalculateBendConstraintConstants()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateBendConstraintConstants")]
|
|
public static partial void SoftBodySharedSettings_CalculateBendConstraintConstants(
|
|
SoftBodySharedSettings self
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.CalculateVolumeConstraintVolumes()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateVolumeConstraintVolumes")]
|
|
public static partial void SoftBodySharedSettings_CalculateVolumeConstraintVolumes(
|
|
SoftBodySharedSettings self
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.CalculateSkinnedConstraintNormals()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateSkinnedConstraintNormals")]
|
|
public static partial void SoftBodySharedSettings_CalculateSkinnedConstraintNormals(
|
|
SoftBodySharedSettings self
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.Optimize()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Optimize")]
|
|
public static partial void SoftBodySharedSettings_Optimize(SoftBodySharedSettings self);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.Clone()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Clone")]
|
|
public static partial SoftBodySharedSettings SoftBodySharedSettings_Clone(SoftBodySharedSettings self);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SaveBinaryState(StreamOut)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SaveBinaryState")]
|
|
public static partial void SoftBodySharedSettings_SaveBinaryState(
|
|
SoftBodySharedSettings self,
|
|
StreamOut stream
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.RestoreBinaryState(StreamIn)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_RestoreBinaryState")]
|
|
public static partial void SoftBodySharedSettings_RestoreBinaryState(
|
|
SoftBodySharedSettings self,
|
|
StreamIn stream
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SaveWithMaterials(StreamOut, SharedSettingsToIDMap, MaterialToIDMap)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SaveWithMaterials")]
|
|
public static partial void SoftBodySharedSettings_SaveWithMaterials(
|
|
SoftBodySharedSettings self,
|
|
StreamOut stream,
|
|
SharedSettingsToIDMap settingsMap,
|
|
MaterialToIDMap materialMap
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Restore a shape and materials. Pass in an empty map in ioSettingsMap / ioMaterialMap or reuse the
|
|
/// same map while reading multiple settings objects from the same stream in order to restore
|
|
/// duplicates.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/SoftBody/SoftBodySharedSettings.h#L118">Jolt/Physics/SoftBody/SoftBodySharedSettings.h:118</see>
|
|
/// <br/>
|
|
/// <c>static SettingsResult sRestoreWithMaterials(StreamIn &inStream, IDToSharedSettingsMap &ioSettingsMap, IDToMaterialMap &ioMaterialMap)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_RestoreWithMaterials")]
|
|
public static partial SoftBodySharedSettings SoftBodySharedSettings_RestoreWithMaterials(
|
|
StreamIn stream,
|
|
IDToSharedSettingsMap settingsMap,
|
|
IDToMaterialMap materialMap
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.CreateCube(uint, float)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CreateCube")]
|
|
public static partial SoftBodySharedSettings SoftBodySharedSettings_CreateCube(
|
|
uint gridSize,
|
|
float gridSpacing
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.AddFace(in SoftBodySharedSettings.Face)"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_AddFace")]
|
|
public static partial void SoftBodySharedSettings_AddFace(
|
|
SoftBodySharedSettings self,
|
|
in SoftBodySharedSettings.Face face
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.GetVertices()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetVertices")]
|
|
public static partial void SoftBodySharedSettings_GetVertices(
|
|
SoftBodySharedSettings self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SetVertices(ReadOnlySpan{SoftBodySharedSettings.Vertex})"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetVertices")]
|
|
public static partial void SoftBodySharedSettings_SetVertices(
|
|
SoftBodySharedSettings self,
|
|
SoftBodySharedSettings.Vertex* value,
|
|
nuint valueCount
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.GetFaces()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetFaces")]
|
|
public static partial void SoftBodySharedSettings_GetFaces(
|
|
SoftBodySharedSettings self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SetFaces(ReadOnlySpan{SoftBodySharedSettings.Face})"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetFaces")]
|
|
public static partial void SoftBodySharedSettings_SetFaces(
|
|
SoftBodySharedSettings self,
|
|
SoftBodySharedSettings.Face* value,
|
|
nuint valueCount
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.GetEdgeConstraints()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetEdgeConstraints")]
|
|
public static partial void SoftBodySharedSettings_GetEdgeConstraints(
|
|
SoftBodySharedSettings self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SetEdgeConstraints(ReadOnlySpan{SoftBodySharedSettings.Edge})"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetEdgeConstraints")]
|
|
public static partial void SoftBodySharedSettings_SetEdgeConstraints(
|
|
SoftBodySharedSettings self,
|
|
SoftBodySharedSettings.Edge* value,
|
|
nuint valueCount
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.GetDihedralBendConstraints()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetDihedralBendConstraints")]
|
|
public static partial void SoftBodySharedSettings_GetDihedralBendConstraints(
|
|
SoftBodySharedSettings self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SetDihedralBendConstraints(ReadOnlySpan{SoftBodySharedSettings.DihedralBend})"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetDihedralBendConstraints")]
|
|
public static partial void SoftBodySharedSettings_SetDihedralBendConstraints(
|
|
SoftBodySharedSettings self,
|
|
SoftBodySharedSettings.DihedralBend* value,
|
|
nuint valueCount
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.GetVolumeConstraints()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetVolumeConstraints")]
|
|
public static partial void SoftBodySharedSettings_GetVolumeConstraints(
|
|
SoftBodySharedSettings self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SetVolumeConstraints(ReadOnlySpan{SoftBodySharedSettings.Volume})"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetVolumeConstraints")]
|
|
public static partial void SoftBodySharedSettings_SetVolumeConstraints(
|
|
SoftBodySharedSettings self,
|
|
SoftBodySharedSettings.Volume* value,
|
|
nuint valueCount
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.GetSkinnedConstraints()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetSkinnedConstraints")]
|
|
public static partial void SoftBodySharedSettings_GetSkinnedConstraints(
|
|
SoftBodySharedSettings self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SetSkinnedConstraints(ReadOnlySpan{SoftBodySharedSettings.Skinned})"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetSkinnedConstraints")]
|
|
public static partial void SoftBodySharedSettings_SetSkinnedConstraints(
|
|
SoftBodySharedSettings self,
|
|
SoftBodySharedSettings.Skinned* value,
|
|
nuint valueCount
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.GetInvBindMatrices()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetInvBindMatrices")]
|
|
public static partial void SoftBodySharedSettings_GetInvBindMatrices(
|
|
SoftBodySharedSettings self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SetInvBindMatrices(ReadOnlySpan{SoftBodySharedSettings.InvBind})"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetInvBindMatrices")]
|
|
public static partial void SoftBodySharedSettings_SetInvBindMatrices(
|
|
SoftBodySharedSettings self,
|
|
SoftBodySharedSettings.InvBind* value,
|
|
nuint valueCount
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.GetRodStretchShearConstraints()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetRodStretchShearConstraints")]
|
|
public static partial void SoftBodySharedSettings_GetRodStretchShearConstraints(
|
|
SoftBodySharedSettings self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SetRodStretchShearConstraints(ReadOnlySpan{SoftBodySharedSettings.RodStretchShear})"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetRodStretchShearConstraints")]
|
|
public static partial void SoftBodySharedSettings_SetRodStretchShearConstraints(
|
|
SoftBodySharedSettings self,
|
|
SoftBodySharedSettings.RodStretchShear* value,
|
|
nuint valueCount
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.GetRodBendTwistConstraints()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetRodBendTwistConstraints")]
|
|
public static partial void SoftBodySharedSettings_GetRodBendTwistConstraints(
|
|
SoftBodySharedSettings self,
|
|
out NativeSpanView outResult
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SetRodBendTwistConstraints(ReadOnlySpan{SoftBodySharedSettings.RodBendTwist})"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetRodBendTwistConstraints")]
|
|
public static partial void SoftBodySharedSettings_SetRodBendTwistConstraints(
|
|
SoftBodySharedSettings self,
|
|
SoftBodySharedSettings.RodBendTwist* value,
|
|
nuint valueCount
|
|
);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.GetMaterials()"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetMaterials")]
|
|
public static partial nint SoftBodySharedSettings_GetMaterials(SoftBodySharedSettings self);
|
|
|
|
/// <inheritdoc cref="SoftBodySharedSettings.SetMaterials(ReadOnlySpan{PhysicsMaterial})"/>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetMaterials")]
|
|
public static partial void SoftBodySharedSettings_SetMaterials(
|
|
SoftBodySharedSettings self,
|
|
PhysicsMaterial* value,
|
|
nuint valueCount
|
|
);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_AddRef")]
|
|
public static partial void SoftBodySharedSettings_AddRef(SoftBodySharedSettings self);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Release")]
|
|
public static partial void SoftBodySharedSettings_Release(SoftBodySharedSettings self);
|
|
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetRefCount")]
|
|
public static partial uint SoftBodySharedSettings_GetRefCount(SoftBodySharedSettings self);
|
|
}
|
|
}
|
|
}
|