mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
80 lines
3.2 KiB
C#
80 lines
3.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>
|
|
/// Class that can read a recorded stream from DebugRendererRecorder and plays it back trough a DebugRenderer
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererPlayback.h#L18">Jolt/Renderer/DebugRendererPlayback.h:18</see>
|
|
/// <br/>
|
|
/// <c>class JPH_DEBUG_RENDERER_EXPORT DebugRendererPlayback</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct DebugRendererPlayback : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererPlayback.h#L22">Jolt/Renderer/DebugRendererPlayback.h:22</see>
|
|
/// <br/>
|
|
/// <c>DebugRendererPlayback(DebugRenderer &inRenderer)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static DebugRendererPlayback Create(DebugRenderer renderer) =>
|
|
Jolt.PInvoke.DebugRendererPlayback_Create(renderer);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Parse a stream of frames
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererPlayback.h#L25">Jolt/Renderer/DebugRendererPlayback.h:25</see>
|
|
/// <br/>
|
|
/// <c>void Parse(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void Parse(StreamIn stream) => Jolt.PInvoke.DebugRendererPlayback_Parse(this, stream);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get the number of parsed frames
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererPlayback.h#L28">Jolt/Renderer/DebugRendererPlayback.h:28</see>
|
|
/// <br/>
|
|
/// <c>uint GetNumFrames() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetNumFrames() => Jolt.PInvoke.DebugRendererPlayback_GetNumFrames(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Draw a frame
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererPlayback.h#L31">Jolt/Renderer/DebugRendererPlayback.h:31</see>
|
|
/// <br/>
|
|
/// <c>void DrawFrame(uint inFrameNumber) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void DrawFrame(uint frameNumber) => Jolt.PInvoke.DebugRendererPlayback_DrawFrame(this, frameNumber);
|
|
|
|
public void Dispose() => Jolt.PInvoke.DebugRendererPlayback_Destroy(this);
|
|
}
|
|
}
|