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

100 lines
4.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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/IndexedTriangle.h#L79">Jolt/Geometry/IndexedTriangle.h:79</see>
/// <br/>
/// <c>class IndexedTriangle : public IndexedTriangleNoMaterial</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Triangle with 32-bit indices and material index
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct IndexedTriangle : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/IndexedTriangle.h#L85">Jolt/Geometry/IndexedTriangle.h:85</see>
/// <br/>
/// <c>constexpr IndexedTriangle(uint32 inI1, uint32 inI2, uint32 inI3, uint32 inMaterialIndex, uint inUserData = 0) : IndexedTriangleNoMaterial(inI1, inI2, inI3), mMaterialIndex(inMaterialIndex), mUserData(inUserData) { }</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static IndexedTriangle Create(uint i1, uint i2, uint i3, uint materialIndex, uint userData) => Jolt.PInvoke.IndexedTriangle_Create(i1, i2, i3, materialIndex, userData);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/IndexedTriangle.h#L113">Jolt/Geometry/IndexedTriangle.h:113</see>
/// <br/>
/// <c>uint64 GetHash() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the hash value of this structure
/// </para>
/// </remarks>
public ulong GetHash() => Jolt.PInvoke.IndexedTriangle_GetHash(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/IndexedTriangle.h#L119">Jolt/Geometry/IndexedTriangle.h:119</see>
/// <br/>
/// <c>uint32 mMaterialIndex = 0</c>
/// </para>
/// </summary>
public uint GetMaterialIndex() => Jolt.PInvoke.IndexedTriangle_GetMaterialIndex(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/IndexedTriangle.h#L119">Jolt/Geometry/IndexedTriangle.h:119</see>
/// <br/>
/// <c>uint32 mMaterialIndex = 0</c>
/// </para>
/// </summary>
public void SetMaterialIndex(uint value) => Jolt.PInvoke.IndexedTriangle_SetMaterialIndex(this, 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/IndexedTriangle.h#L120">Jolt/Geometry/IndexedTriangle.h:120</see>
/// <br/>
/// <c>uint32 mUserData = 0</c>
/// </para>
/// </summary>
public uint GetUserData() => Jolt.PInvoke.IndexedTriangle_GetUserData(this);
/// <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/IndexedTriangle.h#L120">Jolt/Geometry/IndexedTriangle.h:120</see>
/// <br/>
/// <c>uint32 mUserData = 0</c>
/// </para>
/// </summary>
public void SetUserData(uint value) => Jolt.PInvoke.IndexedTriangle_SetUserData(this, value);
public static implicit operator IndexedTriangleNoMaterial(IndexedTriangle value) => Jolt.PInvoke.IndexedTriangle_AsIndexedTriangleNoMaterial(value);
public void Dispose() => Jolt.PInvoke.IndexedTriangle_Destroy(this);
}
}