mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18: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,158 @@
|
|||
// <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/PlaneShape.h#L16">Jolt/Physics/Collision/Shape/PlaneShape.h:16</see>
|
||||
/// <br/>
|
||||
/// <c>class PlaneShapeSettings final : public ShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Class that constructs a PlaneShape
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct PlaneShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L22">Jolt/Physics/Collision/Shape/PlaneShape.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>PlaneShapeSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Default constructor for deserialization
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static PlaneShapeSettings Create() => Jolt.PInvoke.PlaneShapeSettings_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L25">Jolt/Physics/Collision/Shape/PlaneShape.h:25</see>
|
||||
/// <br/>
|
||||
/// <c>explicit PlaneShapeSettings(const Plane &inPlane, const PhysicsMaterial *inMaterial = nullptr, float inHalfExtent = cDefaultHalfExtent)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Create a plane shape.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static PlaneShapeSettings Create(Plane plane, PhysicsMaterial material, float halfExtent) => Jolt.PInvoke.PlaneShapeSettings_Create_2(plane, material, halfExtent);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L18">Jolt/Physics/Collision/Shape/PlaneShape.h:18</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.PlaneShapeSettings_GetRTTI(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L18">Jolt/Physics/Collision/Shape/PlaneShape.h:18</see>
|
||||
/// <br/>
|
||||
/// <c></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.PlaneShapeSettings_CastTo(this, rTTI);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L28">Jolt/Physics/Collision/Shape/PlaneShape.h:28</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.PlaneShapeSettings_CreateShape(this);
|
||||
if (_handle.IsNull()) throw new InvalidOperationException(Jolt.GetLastError());
|
||||
return _handle;
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Surface material of the plane
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L32">Jolt/Physics/Collision/Shape/PlaneShape.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>RefConst<PhysicsMaterial> mMaterial</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public PhysicsMaterial GetMaterial() => Jolt.PInvoke.PlaneShapeSettings_GetMaterial(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Surface material of the plane
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L32">Jolt/Physics/Collision/Shape/PlaneShape.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>RefConst<PhysicsMaterial> mMaterial</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetMaterial(PhysicsMaterial value) => Jolt.PInvoke.PlaneShapeSettings_SetMaterial(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// The bounding box of this plane will run from [-half_extent, half_extent]. Keep this as low as possible
|
||||
/// for better broad phase performance.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L36">Jolt/Physics/Collision/Shape/PlaneShape.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfExtent = cDefaultHalfExtent</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetHalfExtent() => Jolt.PInvoke.PlaneShapeSettings_GetHalfExtent(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// The bounding box of this plane will run from [-half_extent, half_extent]. Keep this as low as possible
|
||||
/// for better broad phase performance.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PlaneShape.h#L36">Jolt/Physics/Collision/Shape/PlaneShape.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfExtent = cDefaultHalfExtent</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetHalfExtent(float value) => Jolt.PInvoke.PlaneShapeSettings_SetHalfExtent(this, value);
|
||||
public void AddRef() => Jolt.PInvoke.PlaneShapeSettings_AddRef(this);
|
||||
public void Release() => Jolt.PInvoke.PlaneShapeSettings_Release(this);
|
||||
public uint GetRefCount() => Jolt.PInvoke.PlaneShapeSettings_GetRefCount(this);
|
||||
public static implicit operator ShapeSettings(PlaneShapeSettings value) => Jolt.PInvoke.PlaneShapeSettings_AsShapeSettings(value);
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull()) return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue