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

111 lines
5.2 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/Geometry/Triangle.h#L16">Jolt/Geometry/Triangle.h:16</see>
/// <br/>
/// <c>Triangle() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Triangle_Create")]
public static partial Triangle Triangle_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L17">Jolt/Geometry/Triangle.h:17</see>
/// <br/>
/// <c>Triangle(const Float3 &amp;inV1, const Float3 &amp;inV2, const Float3 &amp;inV3, uint32 inMaterialIndex = 0, uint32 inUserData = 0)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "Triangle_Create_2")]
public static partial Triangle Triangle_Create_2(float3 v1, float3 v2, float3 v3, uint materialIndex, uint userData);
[LibraryImport("jolt", EntryPoint = "Triangle_Destroy")]
public static partial void Triangle_Destroy(Triangle self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L21">Jolt/Geometry/Triangle.h:21</see>
/// <br/>
/// <c>Vec3 GetCentroid() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get center of triangle
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Triangle_GetCentroid")]
public static partial float3 Triangle_GetCentroid(Triangle self);
/// <summary>
/// <para>
/// Follows mV[3] so that we can read mV as 4 vectors
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L28">Jolt/Geometry/Triangle.h:28</see>
/// <br/>
/// <c>uint32 mMaterialIndex = 0</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "Triangle_GetMaterialIndex")]
public static partial uint Triangle_GetMaterialIndex(Triangle self);
/// <summary>
/// <para>
/// Follows mV[3] so that we can read mV as 4 vectors
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L28">Jolt/Geometry/Triangle.h:28</see>
/// <br/>
/// <c>uint32 mMaterialIndex = 0</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "Triangle_SetMaterialIndex")]
public static partial void Triangle_SetMaterialIndex(Triangle self, uint value);
/// <summary>
/// <para>
/// User data that can be used for anything by the application, e.g. for tracking the original index of
/// the triangle
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L29">Jolt/Geometry/Triangle.h:29</see>
/// <br/>
/// <c>uint32 mUserData = 0</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "Triangle_GetUserData")]
public static partial uint Triangle_GetUserData(Triangle self);
/// <summary>
/// <para>
/// User data that can be used for anything by the application, e.g. for tracking the original index of
/// the triangle
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L29">Jolt/Geometry/Triangle.h:29</see>
/// <br/>
/// <c>uint32 mUserData = 0</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "Triangle_SetUserData")]
public static partial void Triangle_SetUserData(Triangle self, uint value);
}
}
}