//
// 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();
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CreateConstraints")]
public static partial void SoftBodySharedSettings_CreateConstraints(
SoftBodySharedSettings self,
SoftBodySharedSettings.VertexAttributes* vertexAttributes,
uint vertexAttributesLength,
SoftBodySharedSettings.BendType bendType,
float angleTolerance
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateEdgeLengths")]
public static partial void SoftBodySharedSettings_CalculateEdgeLengths(SoftBodySharedSettings self);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateRodProperties")]
public static partial void SoftBodySharedSettings_CalculateRodProperties(SoftBodySharedSettings self);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateLRALengths")]
public static partial void SoftBodySharedSettings_CalculateLRALengths(
SoftBodySharedSettings self,
float maxDistanceMultiplier
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateBendConstraintConstants")]
public static partial void SoftBodySharedSettings_CalculateBendConstraintConstants(
SoftBodySharedSettings self
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateVolumeConstraintVolumes")]
public static partial void SoftBodySharedSettings_CalculateVolumeConstraintVolumes(
SoftBodySharedSettings self
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CalculateSkinnedConstraintNormals")]
public static partial void SoftBodySharedSettings_CalculateSkinnedConstraintNormals(
SoftBodySharedSettings self
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Optimize")]
public static partial void SoftBodySharedSettings_Optimize(SoftBodySharedSettings self);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_Clone")]
public static partial SoftBodySharedSettings SoftBodySharedSettings_Clone(SoftBodySharedSettings self);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SaveBinaryState")]
public static partial void SoftBodySharedSettings_SaveBinaryState(
SoftBodySharedSettings self,
StreamOut stream
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_RestoreBinaryState")]
public static partial void SoftBodySharedSettings_RestoreBinaryState(
SoftBodySharedSettings self,
StreamIn stream
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SaveWithMaterials")]
public static partial void SoftBodySharedSettings_SaveWithMaterials(
SoftBodySharedSettings self,
StreamOut stream,
SharedSettingsToIDMap settingsMap,
MaterialToIDMap materialMap
);
///
///
/// 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.
///
///
/// C++:
/// Jolt/Physics/SoftBody/SoftBodySharedSettings.h:118
///
/// static SettingsResult sRestoreWithMaterials(StreamIn &inStream, IDToSharedSettingsMap &ioSettingsMap, IDToMaterialMap &ioMaterialMap)
///
///
///
///
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
///
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_RestoreWithMaterials")]
public static partial SoftBodySharedSettings SoftBodySharedSettings_RestoreWithMaterials(
StreamIn stream,
IDToSharedSettingsMap settingsMap,
IDToMaterialMap materialMap
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_CreateCube")]
public static partial SoftBodySharedSettings SoftBodySharedSettings_CreateCube(
uint gridSize,
float gridSpacing
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_AddFace")]
public static partial void SoftBodySharedSettings_AddFace(
SoftBodySharedSettings self,
in SoftBodySharedSettings.Face face
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetVertices")]
public static partial void SoftBodySharedSettings_GetVertices(
SoftBodySharedSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetVertices")]
public static partial void SoftBodySharedSettings_SetVertices(
SoftBodySharedSettings self,
SoftBodySharedSettings.Vertex* value,
nuint valueCount
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetFaces")]
public static partial void SoftBodySharedSettings_GetFaces(
SoftBodySharedSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetFaces")]
public static partial void SoftBodySharedSettings_SetFaces(
SoftBodySharedSettings self,
SoftBodySharedSettings.Face* value,
nuint valueCount
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetEdgeConstraints")]
public static partial void SoftBodySharedSettings_GetEdgeConstraints(
SoftBodySharedSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetEdgeConstraints")]
public static partial void SoftBodySharedSettings_SetEdgeConstraints(
SoftBodySharedSettings self,
SoftBodySharedSettings.Edge* value,
nuint valueCount
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetDihedralBendConstraints")]
public static partial void SoftBodySharedSettings_GetDihedralBendConstraints(
SoftBodySharedSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetDihedralBendConstraints")]
public static partial void SoftBodySharedSettings_SetDihedralBendConstraints(
SoftBodySharedSettings self,
SoftBodySharedSettings.DihedralBend* value,
nuint valueCount
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetVolumeConstraints")]
public static partial void SoftBodySharedSettings_GetVolumeConstraints(
SoftBodySharedSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetVolumeConstraints")]
public static partial void SoftBodySharedSettings_SetVolumeConstraints(
SoftBodySharedSettings self,
SoftBodySharedSettings.Volume* value,
nuint valueCount
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetSkinnedConstraints")]
public static partial void SoftBodySharedSettings_GetSkinnedConstraints(
SoftBodySharedSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetSkinnedConstraints")]
public static partial void SoftBodySharedSettings_SetSkinnedConstraints(
SoftBodySharedSettings self,
SoftBodySharedSettings.Skinned* value,
nuint valueCount
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetInvBindMatrices")]
public static partial void SoftBodySharedSettings_GetInvBindMatrices(
SoftBodySharedSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetInvBindMatrices")]
public static partial void SoftBodySharedSettings_SetInvBindMatrices(
SoftBodySharedSettings self,
SoftBodySharedSettings.InvBind* value,
nuint valueCount
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetRodStretchShearConstraints")]
public static partial void SoftBodySharedSettings_GetRodStretchShearConstraints(
SoftBodySharedSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetRodStretchShearConstraints")]
public static partial void SoftBodySharedSettings_SetRodStretchShearConstraints(
SoftBodySharedSettings self,
SoftBodySharedSettings.RodStretchShear* value,
nuint valueCount
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetRodBendTwistConstraints")]
public static partial void SoftBodySharedSettings_GetRodBendTwistConstraints(
SoftBodySharedSettings self,
out NativeSpanView outResult
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_SetRodBendTwistConstraints")]
public static partial void SoftBodySharedSettings_SetRodBendTwistConstraints(
SoftBodySharedSettings self,
SoftBodySharedSettings.RodBendTwist* value,
nuint valueCount
);
///
[LibraryImport("jolt", EntryPoint = "SoftBodySharedSettings_GetMaterials")]
public static partial nint SoftBodySharedSettings_GetMaterials(SoftBodySharedSettings self);
///
[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);
}
}
}