mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
132
Brutal.Jolt/Generated/Classes/ShapeSettings.gen.cs
Normal file
132
Brutal.Jolt/Generated/Classes/ShapeSettings.gen.cs
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
// <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 can construct shapes and that is serializable using the ObjectStream system. Can be used to store
|
||||
/// shape data in 'uncooked' form (i.e. in a form that is still human readable and authorable). Once the shape
|
||||
/// has been created using the Create() function, the data will be moved into the Shape class in a form that is
|
||||
/// optimized for collision detection. After this, the ShapeSettings object is no longer needed and can be
|
||||
/// destroyed. Each shape class has a derived class of the ShapeSettings object to store shape specific data.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/Shape.h#L145">Jolt/Physics/Collision/Shape/Shape.h:145</see>
|
||||
/// <br/>
|
||||
/// <c>class ShapeSettings : public SerializableObject, public RefTarget<ShapeSettings></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct ShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/Shape.h#L147">Jolt/Physics/Collision/Shape/Shape.h:147</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.ShapeSettings_GetRTTI(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/Shape.h#L147">Jolt/Physics/Collision/Shape/Shape.h:147</see>
|
||||
/// <br/>
|
||||
/// <c></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe Ptr CastTo(RTTI rtti) => Jolt.PInvoke.ShapeSettings_CastTo(this, rtti);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Create a shape according to the settings specified by this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/Shape.h#L153">Jolt/Physics/Collision/Shape/Shape.h:153</see>
|
||||
/// <br/>
|
||||
/// <c>virtual ShapeResult Create() const = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Throws JoltException with Jolt's error message when the operation fails.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public Shape CreateShape()
|
||||
{
|
||||
var _handle = Jolt.PInvoke.ShapeSettings_CreateShape(this);
|
||||
if (_handle.IsNull())
|
||||
throw JoltException.FromLastError();
|
||||
return _handle;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// When creating a shape, the result is cached so that calling Create() again will return the same shape.
|
||||
/// If you make changes to the ShapeSettings you need to call this function to clear the cached result to
|
||||
/// allow Create() to build a new shape.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/Shape.h#L157">Jolt/Physics/Collision/Shape/Shape.h:157</see>
|
||||
/// <br/>
|
||||
/// <c>void ClearCachedResult()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void ClearCachedResult() => Jolt.PInvoke.ShapeSettings_ClearCachedResult(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// User data (to be used freely by the application)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/Shape.h#L160">Jolt/Physics/Collision/Shape/Shape.h:160</see>
|
||||
/// <br/>
|
||||
/// <c>uint64 mUserData = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public ulong GetUserData() => Jolt.PInvoke.ShapeSettings_GetUserData(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// User data (to be used freely by the application)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/Shape.h#L160">Jolt/Physics/Collision/Shape/Shape.h:160</see>
|
||||
/// <br/>
|
||||
/// <c>uint64 mUserData = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetUserData(ulong value) => Jolt.PInvoke.ShapeSettings_SetUserData(this, value);
|
||||
|
||||
public void AddRef() => Jolt.PInvoke.ShapeSettings_AddRef(this);
|
||||
|
||||
public void Release() => Jolt.PInvoke.ShapeSettings_Release(this);
|
||||
|
||||
public uint GetRefCount() => Jolt.PInvoke.ShapeSettings_GetRefCount(this);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue