mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,149 @@
|
|||
// <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/TriangleSplitter/TriangleSplitter.h#L13">Jolt/TriangleSplitter/TriangleSplitter.h:13</see>
|
||||
/// <br/>
|
||||
/// <c>class TriangleSplitter : public NonCopyable</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// A class that splits a triangle list into two parts for building a tree
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct TriangleSplitter
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/TriangleSplitter/TriangleSplitter.h#L22">Jolt/TriangleSplitter/TriangleSplitter.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>struct Stats</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
||||
public struct Stats
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/TriangleSplitter/TriangleSplitter.h#L24">Jolt/TriangleSplitter/TriangleSplitter.h:24</see>
|
||||
/// <br/>
|
||||
/// <c>const char * mSplitterName = nullptr</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public Ptr<byte> mSplitterName;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/TriangleSplitter/TriangleSplitter.h#L25">Jolt/TriangleSplitter/TriangleSplitter.h:25</see>
|
||||
/// <br/>
|
||||
/// <c>int mLeafSize = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(8)]
|
||||
public int mLeafSize;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/TriangleSplitter/TriangleSplitter.h#L32">Jolt/TriangleSplitter/TriangleSplitter.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>struct Range</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Helper struct to indicate triangle range before and after the split
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8)]
|
||||
public struct Range
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/TriangleSplitter/TriangleSplitter.h#L45">Jolt/TriangleSplitter/TriangleSplitter.h:45</see>
|
||||
/// <br/>
|
||||
/// <c>uint mBegin</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Start and end index (end = 1 beyond end)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public uint mBegin;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/TriangleSplitter/TriangleSplitter.h#L46">Jolt/TriangleSplitter/TriangleSplitter.h:46</see>
|
||||
/// <br/>
|
||||
/// <c>uint mEnd</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(4)]
|
||||
public uint mEnd;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/TriangleSplitter/TriangleSplitter.h#L29">Jolt/TriangleSplitter/TriangleSplitter.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void GetStats(Stats &outStats) const = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get stats of splitter
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void GetStats(ref TriangleSplitter.Stats stats) => Jolt.PInvoke.TriangleSplitter_GetStats(this, ref stats);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/TriangleSplitter/TriangleSplitter.h#L60">Jolt/TriangleSplitter/TriangleSplitter.h:60</see>
|
||||
/// <br/>
|
||||
/// <c>virtual bool Split(const Range &inTriangles, Range &outLeft, Range &outRight) = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Split triangles into two groups left and right, returns false if no split could be made
|
||||
/// @param inTriangles The range of triangles (in mSortedTriangleIdx) to process
|
||||
/// @param outLeft On return this will contain the ranges for the left subpart. mSortedTriangleIdx may have been shuffled.
|
||||
/// @param outRight On return this will contain the ranges for the right subpart. mSortedTriangleIdx may have been shuffled.
|
||||
/// @return Returns true when a split was found
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public bool Split(ref TriangleSplitter.Range triangles, ref TriangleSplitter.Range left, ref TriangleSplitter.Range right) => Jolt.PInvoke.TriangleSplitter_Split(this, ref triangles, ref left, ref right);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/TriangleSplitter/TriangleSplitter.h#L69">Jolt/TriangleSplitter/TriangleSplitter.h:69</see>
|
||||
/// <br/>
|
||||
/// <c>const IndexedTriangle & GetTriangle(uint inIdx) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get triangle by index
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// The returned handle is borrowed from its owner; don't Dispose it.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public IndexedTriangle GetTriangle(uint idx) => Jolt.PInvoke.TriangleSplitter_GetTriangle(this, idx);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue