mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,77 @@
|
|||
// <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>
|
||||
/// Class that constructs a MutableCompoundShape.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
||||
[InteropHandle]
|
||||
public readonly partial struct MutableCompoundShapeSettings : IDisposable
|
||||
{
|
||||
public static MutableCompoundShapeSettings Create() => Jolt.PInvoke.MutableCompoundShapeSettings_Create();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.GetRTTI()"/>
|
||||
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.CastTo(RTTI)"/>
|
||||
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.CreateShape()"/>
|
||||
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
|
||||
|
||||
public void AddRef() => ((ShapeSettings)this).AddRef();
|
||||
|
||||
public void Release() => ((ShapeSettings)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
|
||||
|
||||
public static implicit operator CompoundShapeSettings(MutableCompoundShapeSettings value) =>
|
||||
Unsafe.BitCast<MutableCompoundShapeSettings, CompoundShapeSettings>(value);
|
||||
|
||||
public static implicit operator ShapeSettings(MutableCompoundShapeSettings value) =>
|
||||
Unsafe.BitCast<MutableCompoundShapeSettings, ShapeSettings>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="CompoundShapeSettings.AddShape(float3, floatQuat, ShapeSettings, uint)"/>
|
||||
public void AddShape(float3 position, floatQuat rotation, ShapeSettings shape, uint userData = 0) =>
|
||||
((CompoundShapeSettings)this).AddShape(position, rotation, shape, userData);
|
||||
|
||||
/// <inheritdoc cref="CompoundShapeSettings.AddShape(float3, floatQuat, Shape, uint)"/>
|
||||
public void AddShape(float3 position, floatQuat rotation, Shape shape, uint userData = 0) =>
|
||||
((CompoundShapeSettings)this).AddShape(position, rotation, shape, userData);
|
||||
|
||||
/// <inheritdoc cref="CompoundShapeSettings.GetSubShapes()"/>
|
||||
[return: Brutal.Attributes.Fixed]
|
||||
public unsafe ReadOnlySpan<CompoundShapeSettings.SubShapeSettings> GetSubShapes() =>
|
||||
((CompoundShapeSettings)this).GetSubShapes();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.ClearCachedResult()"/>
|
||||
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.GetUserData()"/>
|
||||
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.SetUserData(ulong)"/>
|
||||
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue