mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
102
Brutal.Jolt/Generated/Structs/IndexedTriangle.gen.cs
Normal file
102
Brutal.Jolt/Generated/Structs/IndexedTriangle.gen.cs
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Triangle with 32-bit indices and material index
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L79">Jolt/Geometry/IndexedTriangle.h:79</see>
|
||||
/// <br/>
|
||||
/// <c>class IndexedTriangle : public IndexedTriangleNoMaterial</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 20)]
|
||||
public partial struct IndexedTriangle
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public uint_3 Idx;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L119">Jolt/Geometry/IndexedTriangle.h:119</see>
|
||||
/// <br/>
|
||||
/// <c>uint32 mMaterialIndex = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(12)]
|
||||
public uint MaterialIndex;
|
||||
|
||||
/// <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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L120">Jolt/Geometry/IndexedTriangle.h:120</see>
|
||||
/// <br/>
|
||||
/// <c>uint32 mUserData = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(16)]
|
||||
public uint UserData;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
||||
public static IndexedTriangle Create(uint i1, uint i2, uint i3, uint materialIndex, uint userData = 0)
|
||||
{
|
||||
Jolt.PInvoke.IndexedTriangle_Create(i1, i2, i3, materialIndex, userData, out var _outResult);
|
||||
return _outResult;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Rotate the vertices so that the lowest vertex becomes the first. This does not change the represented
|
||||
/// triangle.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L94">Jolt/Geometry/IndexedTriangle.h:94</see>
|
||||
/// <br/>
|
||||
/// <c>IndexedTriangle GetLowestIndexFirst() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public readonly IndexedTriangle GetLowestIndexFirst()
|
||||
{
|
||||
Jolt.PInvoke.IndexedTriangle_GetLowestIndexFirst(ref Unsafe.AsRef(in this), out var _outResult);
|
||||
return _outResult;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Get the hash value of this structure
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L113">Jolt/Geometry/IndexedTriangle.h:113</see>
|
||||
/// <br/>
|
||||
/// <c>uint64 GetHash() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public readonly ulong GetHash() => Jolt.PInvoke.IndexedTriangle_GetHash(ref Unsafe.AsRef(in this));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue