mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +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,201 @@
|
|||
// <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/Physics/Collision/Shape/StaticCompoundShape.h#L32">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>class StaticCompoundShape final : public CompoundShape</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// A compound shape, sub shapes can be rotated and translated.
|
||||
/// Sub shapes cannot be modified once the shape is constructed.
|
||||
/// Shifts all child objects so that they're centered around the center of mass.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct StaticCompoundShape : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L118">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:118</see>
|
||||
/// <br/>
|
||||
/// <c>struct Node</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Node structure
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 64)]
|
||||
public struct Node
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 child bounding boxes
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L123">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:123</see>
|
||||
/// <br/>
|
||||
/// <c>HalfFloat mBoundsMinX[4]</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public ushort_4 mBoundsMinX;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L124">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:124</see>
|
||||
/// <br/>
|
||||
/// <c>HalfFloat mBoundsMinY[4]</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(8)]
|
||||
public ushort_4 mBoundsMinY;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L125">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:125</see>
|
||||
/// <br/>
|
||||
/// <c>HalfFloat mBoundsMinZ[4]</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(16)]
|
||||
public ushort_4 mBoundsMinZ;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L126">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:126</see>
|
||||
/// <br/>
|
||||
/// <c>HalfFloat mBoundsMaxX[4]</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(24)]
|
||||
public ushort_4 mBoundsMaxX;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L127">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:127</see>
|
||||
/// <br/>
|
||||
/// <c>HalfFloat mBoundsMaxY[4]</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(32)]
|
||||
public ushort_4 mBoundsMaxY;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L128">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:128</see>
|
||||
/// <br/>
|
||||
/// <c>HalfFloat mBoundsMaxZ[4]</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(40)]
|
||||
public ushort_4 mBoundsMaxZ;
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 child node properties
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L129">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:129</see>
|
||||
/// <br/>
|
||||
/// <c>uint32 mNodeProperties[4]</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(48)]
|
||||
public uint_4 mNodeProperties;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L38">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:38</see>
|
||||
/// <br/>
|
||||
/// <c>StaticCompoundShape()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static StaticCompoundShape Create() => Jolt.PInvoke.StaticCompoundShape_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L52">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:52</see>
|
||||
/// <br/>
|
||||
/// <c>virtual int GetIntersectingSubShapes(const AABox &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// See: CompoundShape::GetIntersectingSubShapes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe int GetIntersectingSubShapes(AABox box, Ptr<uint> subShapeIndices, int maxSubShapeIndices) => Jolt.PInvoke.StaticCompoundShape_GetIntersectingSubShapes(this, box, subShapeIndices, maxSubShapeIndices);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L55">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:55</see>
|
||||
/// <br/>
|
||||
/// <c>virtual int GetIntersectingSubShapes(const OrientedBox &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// See: CompoundShape::GetIntersectingSubShapes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe int GetIntersectingSubShapes(OrientedBox box, Ptr<uint> subShapeIndices, int maxSubShapeIndices) => Jolt.PInvoke.StaticCompoundShape_GetIntersectingSubShapes_2(this, box, subShapeIndices, maxSubShapeIndices);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L58">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:58</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// See Shape
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.StaticCompoundShape_SaveBinaryState(this, stream);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/StaticCompoundShape.h#L64">Jolt/Physics/Collision/Shape/StaticCompoundShape.h:64</see>
|
||||
/// <br/>
|
||||
/// <c>static void sRegister()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Register shape functions with the registry
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static void sRegister() => Jolt.PInvoke.StaticCompoundShape_sRegister();
|
||||
public void AddRef() => Jolt.PInvoke.StaticCompoundShape_AddRef(this);
|
||||
public void Release() => Jolt.PInvoke.StaticCompoundShape_Release(this);
|
||||
public uint GetRefCount() => Jolt.PInvoke.StaticCompoundShape_GetRefCount(this);
|
||||
public static implicit operator CompoundShape(StaticCompoundShape value) => Jolt.PInvoke.StaticCompoundShape_AsCompoundShape(value);
|
||||
public static implicit operator Shape(StaticCompoundShape value) => Jolt.PInvoke.StaticCompoundShape_AsShape(value);
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull()) return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue