mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
60 lines
2.2 KiB
C#
60 lines
2.2 KiB
C#
// <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>
|
|
/// Function table for functions on shapes
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/Shape.h#L167">Jolt/Physics/Collision/Shape/Shape.h:167</see>
|
|
/// <br/>
|
|
/// <c>class ShapeFunctions</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct ShapeFunctions : IDisposable
|
|
{
|
|
public static ShapeFunctions Create() => Jolt.PInvoke.ShapeFunctions_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get an entry in the registry for a particular sub type
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/Shape.h#L177">Jolt/Physics/Collision/Shape/Shape.h:177</see>
|
|
/// <br/>
|
|
/// <c>static inline ShapeFunctions & sGet(EShapeSubType inSubType)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public static ShapeFunctions Get(ShapeSubType subType) => Jolt.PInvoke.ShapeFunctions_Get(subType);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Color of the shape when drawing
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/Shape.h#L174">Jolt/Physics/Collision/Shape/Shape.h:174</see>
|
|
/// <br/>
|
|
/// <c>Color mColor = Color::sBlack</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetColor() => Jolt.PInvoke.ShapeFunctions_GetColor(this);
|
|
|
|
public void Dispose() => Jolt.PInvoke.ShapeFunctions_Destroy(this);
|
|
}
|
|
}
|