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

239 lines
14 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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L28">Jolt/Physics/Collision/Shape/MeshShape.h:28</see>
/// <br/>
/// <c>MeshShapeSettings() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Default constructor for deserialization
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_Create")]
public static partial MeshShapeSettings MeshShapeSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L24">Jolt/Physics/Collision/Shape/MeshShape.h:24</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetRTTI")]
public static partial RTTI MeshShapeSettings_GetRTTI(MeshShapeSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L24">Jolt/Physics/Collision/Shape/MeshShape.h:24</see>
/// <br/>
/// <c></c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_CastTo")]
public static partial void* MeshShapeSettings_CastTo(MeshShapeSettings self, RTTI rTTI);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L35">Jolt/Physics/Collision/Shape/MeshShape.h:35</see>
/// <br/>
/// <c>void Sanitize()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sanitize the mesh data. Remove duplicate and degenerate triangles. This is called automatically when
/// constructing the MeshShapeSettings with a list of (indexed-) triangles.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_Sanitize")]
public static partial void MeshShapeSettings_Sanitize(MeshShapeSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L38">Jolt/Physics/Collision/Shape/MeshShape.h:38</see>
/// <br/>
/// <c>virtual ShapeResult Create() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: ShapeSettings
/// </para>
/// <para>
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_CreateShape")]
public static partial Shape MeshShapeSettings_CreateShape(MeshShapeSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L56">Jolt/Physics/Collision/Shape/MeshShape.h:56</see>
/// <br/>
/// <c>uint mMaxTrianglesPerLeaf = 8</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Maximum number of triangles in each leaf of the axis aligned box tree. This is a balance between memory and performance. Can be in the range [1, MeshShape::MaxTrianglesPerLeaf].
/// Sensible values are between 4 (for better performance) and 8 (for less memory usage).
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetMaxTrianglesPerLeaf")]
public static partial uint MeshShapeSettings_GetMaxTrianglesPerLeaf(MeshShapeSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L56">Jolt/Physics/Collision/Shape/MeshShape.h:56</see>
/// <br/>
/// <c>uint mMaxTrianglesPerLeaf = 8</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Maximum number of triangles in each leaf of the axis aligned box tree. This is a balance between memory and performance. Can be in the range [1, MeshShape::MaxTrianglesPerLeaf].
/// Sensible values are between 4 (for better performance) and 8 (for less memory usage).
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_SetMaxTrianglesPerLeaf")]
public static partial void MeshShapeSettings_SetMaxTrianglesPerLeaf(MeshShapeSettings self, uint value);
/// <summary>
/// <para>
/// cos(5 degrees)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L63">Jolt/Physics/Collision/Shape/MeshShape.h:63</see>
/// <br/>
/// <c>float mActiveEdgeCosThresholdAngle = 0.996195f</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Cosine of the threshold angle (if the angle between the two triangles is bigger than this, the edge is active, note that a concave edge is always inactive).
/// Setting this value too small can cause ghost collisions with edges, setting it too big can cause depenetration artifacts (objects not depenetrating quickly).
/// Valid ranges are between cos(0 degrees) and cos(90 degrees). The default value is cos(5 degrees).
/// Negative values will make all edges active and causes EActiveEdgeMode::CollideOnlyWithActive to behave as EActiveEdgeMode::CollideWithAll.
/// This speeds up the build process but will require all bodies that can interact with the mesh to use BodyCreationSettings::mEnhancedInternalEdgeRemoval = true.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetActiveEdgeCosThresholdAngle")]
public static partial float MeshShapeSettings_GetActiveEdgeCosThresholdAngle(MeshShapeSettings self);
/// <summary>
/// <para>
/// cos(5 degrees)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L63">Jolt/Physics/Collision/Shape/MeshShape.h:63</see>
/// <br/>
/// <c>float mActiveEdgeCosThresholdAngle = 0.996195f</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Cosine of the threshold angle (if the angle between the two triangles is bigger than this, the edge is active, note that a concave edge is always inactive).
/// Setting this value too small can cause ghost collisions with edges, setting it too big can cause depenetration artifacts (objects not depenetrating quickly).
/// Valid ranges are between cos(0 degrees) and cos(90 degrees). The default value is cos(5 degrees).
/// Negative values will make all edges active and causes EActiveEdgeMode::CollideOnlyWithActive to behave as EActiveEdgeMode::CollideWithAll.
/// This speeds up the build process but will require all bodies that can interact with the mesh to use BodyCreationSettings::mEnhancedInternalEdgeRemoval = true.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_SetActiveEdgeCosThresholdAngle")]
public static partial void MeshShapeSettings_SetActiveEdgeCosThresholdAngle(MeshShapeSettings self, float value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L69">Jolt/Physics/Collision/Shape/MeshShape.h:69</see>
/// <br/>
/// <c>bool mPerTriangleUserData = false</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// When true, we store the user data coming from Triangle::mUserData or IndexedTriangle::mUserData in the mesh shape.
/// This can be used to store additional data like the original index of the triangle in the mesh.
/// Can be retrieved using MeshShape::GetTriangleUserData.
/// Turning this on increases the memory used by the MeshShape by roughly 25%.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetPerTriangleUserData")]
public static partial Brutal.Bool8 MeshShapeSettings_GetPerTriangleUserData(MeshShapeSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L69">Jolt/Physics/Collision/Shape/MeshShape.h:69</see>
/// <br/>
/// <c>bool mPerTriangleUserData = false</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// When true, we store the user data coming from Triangle::mUserData or IndexedTriangle::mUserData in the mesh shape.
/// This can be used to store additional data like the original index of the triangle in the mesh.
/// Can be retrieved using MeshShape::GetTriangleUserData.
/// Turning this on increases the memory used by the MeshShape by roughly 25%.
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_SetPerTriangleUserData")]
public static partial void MeshShapeSettings_SetPerTriangleUserData(MeshShapeSettings self, Brutal.Bool8 value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L78">Jolt/Physics/Collision/Shape/MeshShape.h:78</see>
/// <br/>
/// <c>EBuildQuality mBuildQuality = EBuildQuality::FavorRuntimePerformance</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Determines the quality of the tree building process.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetBuildQuality")]
public static partial MeshShapeSettings.EBuildQuality MeshShapeSettings_GetBuildQuality(MeshShapeSettings self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MeshShape.h#L78">Jolt/Physics/Collision/Shape/MeshShape.h:78</see>
/// <br/>
/// <c>EBuildQuality mBuildQuality = EBuildQuality::FavorRuntimePerformance</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Determines the quality of the tree building process.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_SetBuildQuality")]
public static partial void MeshShapeSettings_SetBuildQuality(MeshShapeSettings self, MeshShapeSettings.EBuildQuality value);
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_AddRef")]
public static partial void MeshShapeSettings_AddRef(MeshShapeSettings self);
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_Release")]
public static partial void MeshShapeSettings_Release(MeshShapeSettings self);
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_GetRefCount")]
public static partial uint MeshShapeSettings_GetRefCount(MeshShapeSettings self);
[LibraryImport("jolt", EntryPoint = "MeshShapeSettings_AsShapeSettings")]
public static partial ShapeSettings MeshShapeSettings_AsShapeSettings(MeshShapeSettings self);
}
}
}