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
135
Brutal.Jolt/Generated/Classes/ScaledShapeSettings.gen.cs
Normal file
135
Brutal.Jolt/Generated/Classes/ScaledShapeSettings.gen.cs
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
// <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 ScaledShape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ScaledShape.h#L16">Jolt/Physics/Collision/Shape/ScaledShape.h:16</see>
|
||||
/// <br/>
|
||||
/// <c>class ScaledShapeSettings final : public DecoratedShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct ScaledShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Default constructor for deserialization
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ScaledShape.h#L22">Jolt/Physics/Collision/Shape/ScaledShape.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>ScaledShapeSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static ScaledShapeSettings Create() => Jolt.PInvoke.ScaledShapeSettings_Create();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor that decorates another shape with a scale
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ScaledShape.h#L25">Jolt/Physics/Collision/Shape/ScaledShape.h:25</see>
|
||||
/// <br/>
|
||||
/// <c>ScaledShapeSettings(const ShapeSettings *inShape, Vec3Arg inScale)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static ScaledShapeSettings Create(ShapeSettings shape, float3 scale) =>
|
||||
Jolt.PInvoke.ScaledShapeSettings_Create_2(shape, scale);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Variant that uses a concrete shape, which means this object cannot be serialized.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ScaledShape.h#L28">Jolt/Physics/Collision/Shape/ScaledShape.h:28</see>
|
||||
/// <br/>
|
||||
/// <c>ScaledShapeSettings(const Shape *inShape, Vec3Arg inScale)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static ScaledShapeSettings Create(Shape shape, float3 scale) =>
|
||||
Jolt.PInvoke.ScaledShapeSettings_Create_3(shape, scale);
|
||||
|
||||
/// <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();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ScaledShape.h#L33">Jolt/Physics/Collision/Shape/ScaledShape.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mScale = Vec3(1, 1, 1)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetScale() => Jolt.PInvoke.ScaledShapeSettings_GetScale(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/ScaledShape.h#L33">Jolt/Physics/Collision/Shape/ScaledShape.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mScale = Vec3(1, 1, 1)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetScale(float3 value) => Jolt.PInvoke.ScaledShapeSettings_SetScale(this, value);
|
||||
|
||||
public void AddRef() => ((ShapeSettings)this).AddRef();
|
||||
|
||||
public void Release() => ((ShapeSettings)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
|
||||
|
||||
public static implicit operator DecoratedShapeSettings(ScaledShapeSettings value) =>
|
||||
Unsafe.BitCast<ScaledShapeSettings, DecoratedShapeSettings>(value);
|
||||
|
||||
public static implicit operator ShapeSettings(ScaledShapeSettings value) =>
|
||||
Unsafe.BitCast<ScaledShapeSettings, ShapeSettings>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="DecoratedShapeSettings.GetInnerShape()"/>
|
||||
public ShapeSettings GetInnerShape() => ((DecoratedShapeSettings)this).GetInnerShape();
|
||||
|
||||
/// <inheritdoc cref="DecoratedShapeSettings.SetInnerShape(ShapeSettings)"/>
|
||||
public void SetInnerShape(ShapeSettings value) => ((DecoratedShapeSettings)this).SetInnerShape(value);
|
||||
|
||||
/// <inheritdoc cref="DecoratedShapeSettings.GetInnerShapePtr()"/>
|
||||
public Shape GetInnerShapePtr() => ((DecoratedShapeSettings)this).GetInnerShapePtr();
|
||||
|
||||
/// <inheritdoc cref="DecoratedShapeSettings.SetInnerShapePtr(Shape)"/>
|
||||
public void SetInnerShapePtr(Shape value) => ((DecoratedShapeSettings)this).SetInnerShapePtr(value);
|
||||
|
||||
/// <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