mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
82 lines
3.7 KiB
C#
82 lines
3.7 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/Physics/Collision/Shape/MutableCompoundShape.h#L14">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:14</see>
|
|
/// <br/>
|
|
/// <c>class MutableCompoundShapeSettings final : public CompoundShapeSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Class that constructs a MutableCompoundShape.
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct MutableCompoundShapeSettings : IDisposable
|
|
{
|
|
public static MutableCompoundShapeSettings Create() => Jolt.PInvoke.MutableCompoundShapeSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L16">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:16</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public RTTI GetRTTI() => Jolt.PInvoke.MutableCompoundShapeSettings_GetRTTI(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L16">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:16</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.MutableCompoundShapeSettings_CastTo(this, rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L20">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:20</see>
|
|
/// <br/>
|
|
/// <c>virtual ShapeResult Create() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: ShapeSettings
|
|
/// </para>
|
|
/// <para>
|
|
/// Throws InvalidOperationException with Jolt's error message when the operation fails.
|
|
/// </para>
|
|
/// </remarks>
|
|
public Shape CreateShape()
|
|
{
|
|
var _handle = Jolt.PInvoke.MutableCompoundShapeSettings_CreateShape(this);
|
|
if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError());
|
|
return _handle;
|
|
}
|
|
public void AddRef() => Jolt.PInvoke.MutableCompoundShapeSettings_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.MutableCompoundShapeSettings_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.MutableCompoundShapeSettings_GetRefCount(this);
|
|
public static implicit operator CompoundShapeSettings(MutableCompoundShapeSettings value) => Jolt.PInvoke.MutableCompoundShapeSettings_AsCompoundShapeSettings(value);
|
|
public static implicit operator ShapeSettings(MutableCompoundShapeSettings value) => Jolt.PInvoke.MutableCompoundShapeSettings_AsShapeSettings(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|