mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
100 lines
4.3 KiB
C#
100 lines
4.3 KiB
C#
// <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/PhysicsMaterialSimple.h#L12">Jolt/Physics/Collision/PhysicsMaterialSimple.h:12</see>
|
|
/// <br/>
|
|
/// <c>class PhysicsMaterialSimple : public PhysicsMaterial</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Sample implementation of PhysicsMaterial that just holds the needed properties directly
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct PhysicsMaterialSimple : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/PhysicsMaterialSimple.h#L18">Jolt/Physics/Collision/PhysicsMaterialSimple.h:18</see>
|
|
/// <br/>
|
|
/// <c>PhysicsMaterialSimple() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
public static PhysicsMaterialSimple Create() => Jolt.PInvoke.PhysicsMaterialSimple_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/PhysicsMaterialSimple.h#L14">Jolt/Physics/Collision/PhysicsMaterialSimple.h:14</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.PhysicsMaterialSimple_GetRTTI(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/PhysicsMaterialSimple.h#L14">Jolt/Physics/Collision/PhysicsMaterialSimple.h:14</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.PhysicsMaterialSimple_CastTo(this, rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/PhysicsMaterialSimple.h#L22">Jolt/Physics/Collision/PhysicsMaterialSimple.h:22</see>
|
|
/// <br/>
|
|
/// <c>virtual const char * GetDebugName() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Properties
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe RefString8 GetDebugName() => (Ptr<byte>)Jolt.PInvoke.PhysicsMaterialSimple_GetDebugName(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/PhysicsMaterialSimple.h#L26">Jolt/Physics/Collision/PhysicsMaterialSimple.h:26</see>
|
|
/// <br/>
|
|
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: PhysicsMaterial::SaveBinaryState
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.PhysicsMaterialSimple_SaveBinaryState(this, stream);
|
|
public void AddRef() => Jolt.PInvoke.PhysicsMaterialSimple_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.PhysicsMaterialSimple_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.PhysicsMaterialSimple_GetRefCount(this);
|
|
public static implicit operator PhysicsMaterial(PhysicsMaterialSimple value) => Jolt.PInvoke.PhysicsMaterialSimple_AsPhysicsMaterial(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|