mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
547
Brutal.Jolt/Generated/Classes/DebugRendererRecorder.gen.cs
Normal file
547
Brutal.Jolt/Generated/Classes/DebugRendererRecorder.gen.cs
Normal file
|
|
@ -0,0 +1,547 @@
|
|||
// <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>
|
||||
/// Implementation of DebugRenderer that records the API invocations to be played back later
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L19">Jolt/Renderer/DebugRendererRecorder.h:19</see>
|
||||
/// <br/>
|
||||
/// <c>class JPH_DEBUG_RENDERER_EXPORT DebugRendererRecorder final : public DebugRenderer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct DebugRendererRecorder : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Control commands written into the stream
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L39">Jolt/Renderer/DebugRendererRecorder.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>enum class ECommand : uint8</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public enum Command : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L41">Jolt/Renderer/DebugRendererRecorder.h:41</see>
|
||||
/// <br/>
|
||||
/// <c>CreateBatch</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
CreateBatch,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L42">Jolt/Renderer/DebugRendererRecorder.h:42</see>
|
||||
/// <br/>
|
||||
/// <c>CreateBatchIndexed</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
CreateBatchIndexed,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L43">Jolt/Renderer/DebugRendererRecorder.h:43</see>
|
||||
/// <br/>
|
||||
/// <c>CreateGeometry</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
CreateGeometry,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L44">Jolt/Renderer/DebugRendererRecorder.h:44</see>
|
||||
/// <br/>
|
||||
/// <c>EndFrame</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
EndFrame,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Holds a single line segment
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L48">Jolt/Renderer/DebugRendererRecorder.h:48</see>
|
||||
/// <br/>
|
||||
/// <c>struct LineBlob</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48)]
|
||||
public partial struct LineBlob
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L50">Jolt/Renderer/DebugRendererRecorder.h:50</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mFrom</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public float3 From;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L51">Jolt/Renderer/DebugRendererRecorder.h:51</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mTo</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(16)]
|
||||
public float3 To;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L52">Jolt/Renderer/DebugRendererRecorder.h:52</see>
|
||||
/// <br/>
|
||||
/// <c>Color mColor</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(32)]
|
||||
public uint Color;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Holds a single triangle
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L56">Jolt/Renderer/DebugRendererRecorder.h:56</see>
|
||||
/// <br/>
|
||||
/// <c>struct TriangleBlob</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 64)]
|
||||
public partial struct TriangleBlob
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L58">Jolt/Renderer/DebugRendererRecorder.h:58</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mV1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public float3 V1;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L59">Jolt/Renderer/DebugRendererRecorder.h:59</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mV2</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(16)]
|
||||
public float3 V2;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L60">Jolt/Renderer/DebugRendererRecorder.h:60</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mV3</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(32)]
|
||||
public float3 V3;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L61">Jolt/Renderer/DebugRendererRecorder.h:61</see>
|
||||
/// <br/>
|
||||
/// <c>Color mColor</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(48)]
|
||||
public uint Color;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L62">Jolt/Renderer/DebugRendererRecorder.h:62</see>
|
||||
/// <br/>
|
||||
/// <c>ECastShadow mCastShadow</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(52)]
|
||||
public DebugRenderer.CastShadow CastShadow;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Holds a single geometry draw call
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L78">Jolt/Renderer/DebugRendererRecorder.h:78</see>
|
||||
/// <br/>
|
||||
/// <c>struct GeometryBlob</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 96)]
|
||||
public partial struct GeometryBlob
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L80">Jolt/Renderer/DebugRendererRecorder.h:80</see>
|
||||
/// <br/>
|
||||
/// <c>RMat44 mModelMatrix</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public float4x4 ModelMatrix;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L81">Jolt/Renderer/DebugRendererRecorder.h:81</see>
|
||||
/// <br/>
|
||||
/// <c>Color mModelColor</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(64)]
|
||||
public uint ModelColor;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L82">Jolt/Renderer/DebugRendererRecorder.h:82</see>
|
||||
/// <br/>
|
||||
/// <c>uint32 mGeometryID</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(68)]
|
||||
public uint GeometryID;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L83">Jolt/Renderer/DebugRendererRecorder.h:83</see>
|
||||
/// <br/>
|
||||
/// <c>ECullMode mCullMode</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(72)]
|
||||
public DebugRenderer.CullMode CullMode;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L84">Jolt/Renderer/DebugRendererRecorder.h:84</see>
|
||||
/// <br/>
|
||||
/// <c>ECastShadow mCastShadow</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(76)]
|
||||
public DebugRenderer.CastShadow CastShadow;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L85">Jolt/Renderer/DebugRendererRecorder.h:85</see>
|
||||
/// <br/>
|
||||
/// <c>EDrawMode mDrawMode</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(80)]
|
||||
public DebugRenderer.DrawMode DrawMode;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L25">Jolt/Renderer/DebugRendererRecorder.h:25</see>
|
||||
/// <br/>
|
||||
/// <c>DebugRendererRecorder(StreamOut &inStream)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static DebugRendererRecorder Create(StreamOut stream) =>
|
||||
Jolt.PInvoke.DebugRendererRecorder_Create(stream);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawLine(float3, float3, uint)"/>
|
||||
public void DrawLine(float3 from, float3 to, uint color) => ((DebugRenderer)this).DrawLine(from, to, color);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L29">Jolt/Renderer/DebugRendererRecorder.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void DrawTriangle(RVec3Arg inV1, RVec3Arg inV2, RVec3Arg inV3, ColorArg inColor, ECastShadow inCastShadow) override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawTriangle(float3 v1, float3 v2, float3 v3, uint color, DebugRenderer.CastShadow castShadow) =>
|
||||
Jolt.PInvoke.DebugRendererRecorder_DrawTriangle(this, v1, v2, v3, color, castShadow);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L33">Jolt/Renderer/DebugRendererRecorder.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void DrawText3D(RVec3Arg inPosition, const string_view &inString, ColorArg inColor, float inHeight) override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe void DrawText3D(float3 position, RefString8 @string, uint color, float height)
|
||||
{
|
||||
fixed (byte* @string_fixed = @string)
|
||||
{
|
||||
Jolt.PInvoke.DebugRendererRecorder_DrawText3D(this, position, @string_fixed, color, height);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Mark the end of a frame
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRendererRecorder.h#L36">Jolt/Renderer/DebugRendererRecorder.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>void EndFrame()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void EndFrame() => Jolt.PInvoke.DebugRendererRecorder_EndFrame(this);
|
||||
|
||||
public static implicit operator DebugRenderer(DebugRendererRecorder value) =>
|
||||
Unsafe.BitCast<DebugRendererRecorder, DebugRenderer>(value);
|
||||
|
||||
public void Dispose() => Jolt.PInvoke.DebugRendererRecorder_Destroy(this);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.NextFrame()"/>
|
||||
public void NextFrame() => ((DebugRenderer)this).NextFrame();
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawWireBox(in AABox, uint)"/>
|
||||
public void DrawWireBox(in AABox box, uint color) => ((DebugRenderer)this).DrawWireBox(in box, color);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawWireBox(OrientedBox, uint)"/>
|
||||
public void DrawWireBox(OrientedBox box, uint color) => ((DebugRenderer)this).DrawWireBox(box, color);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawWireBox(in float4x4, in AABox, uint)"/>
|
||||
public void DrawWireBox(in float4x4 matrix, in AABox box, uint color) =>
|
||||
((DebugRenderer)this).DrawWireBox(in matrix, in box, color);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawMarker(float3, uint, float)"/>
|
||||
public void DrawMarker(float3 position, uint color, float size) =>
|
||||
((DebugRenderer)this).DrawMarker(position, color, size);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawArrow(float3, float3, uint, float)"/>
|
||||
public void DrawArrow(float3 from, float3 to, uint color, float size) =>
|
||||
((DebugRenderer)this).DrawArrow(from, to, color, size);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawCoordinateSystem(in float4x4, float)"/>
|
||||
public void DrawCoordinateSystem(in float4x4 transform, float size = 1f) =>
|
||||
((DebugRenderer)this).DrawCoordinateSystem(in transform, size);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawPlane(float3, float3, uint, float)"/>
|
||||
public void DrawPlane(float3 point, float3 normal, uint color, float size) =>
|
||||
((DebugRenderer)this).DrawPlane(point, normal, color, size);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawWireTriangle(float3, float3, float3, uint)"/>
|
||||
public void DrawWireTriangle(float3 v1, float3 v2, float3 v3, uint color) =>
|
||||
((DebugRenderer)this).DrawWireTriangle(v1, v2, v3, color);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawWireSphere(float3, float, uint, int)"/>
|
||||
public void DrawWireSphere(float3 center, float radius, uint color, int level = 3) =>
|
||||
((DebugRenderer)this).DrawWireSphere(center, radius, color, level);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawWireUnitSphere(in float4x4, uint, int)"/>
|
||||
public void DrawWireUnitSphere(in float4x4 matrix, uint color, int level = 3) =>
|
||||
((DebugRenderer)this).DrawWireUnitSphere(in matrix, color, level);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawBox(in AABox, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawBox(
|
||||
in AABox box,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => ((DebugRenderer)this).DrawBox(in box, color, castShadow, drawMode);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawBox(in float4x4, in AABox, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawBox(
|
||||
in float4x4 matrix,
|
||||
in AABox box,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => ((DebugRenderer)this).DrawBox(in matrix, in box, color, castShadow, drawMode);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawSphere(float3, float, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawSphere(
|
||||
float3 center,
|
||||
float radius,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => ((DebugRenderer)this).DrawSphere(center, radius, color, castShadow, drawMode);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawUnitSphere(in float4x4, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawUnitSphere(
|
||||
in float4x4 matrix,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => ((DebugRenderer)this).DrawUnitSphere(in matrix, color, castShadow, drawMode);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawCapsule(in float4x4, float, float, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawCapsule(
|
||||
in float4x4 matrix,
|
||||
float halfHeightOfCylinder,
|
||||
float radius,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => ((DebugRenderer)this).DrawCapsule(in matrix, halfHeightOfCylinder, radius, color, castShadow, drawMode);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawCylinder(in float4x4, float, float, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawCylinder(
|
||||
in float4x4 matrix,
|
||||
float halfHeight,
|
||||
float radius,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => ((DebugRenderer)this).DrawCylinder(in matrix, halfHeight, radius, color, castShadow, drawMode);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawOpenCone(float3, float3, float3, float, float, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawOpenCone(
|
||||
float3 top,
|
||||
float3 axis,
|
||||
float3 perpendicular,
|
||||
float halfAngle,
|
||||
float length,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) =>
|
||||
((DebugRenderer)this).DrawOpenCone(
|
||||
top,
|
||||
axis,
|
||||
perpendicular,
|
||||
halfAngle,
|
||||
length,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawSwingConeLimits(in float4x4, float, float, float, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawSwingConeLimits(
|
||||
in float4x4 matrix,
|
||||
float swingYHalfAngle,
|
||||
float swingZHalfAngle,
|
||||
float edgeLength,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) =>
|
||||
((DebugRenderer)this).DrawSwingConeLimits(
|
||||
in matrix,
|
||||
swingYHalfAngle,
|
||||
swingZHalfAngle,
|
||||
edgeLength,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawSwingPyramidLimits(in float4x4, float, float, float, float, float, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawSwingPyramidLimits(
|
||||
in float4x4 matrix,
|
||||
float minSwingYAngle,
|
||||
float maxSwingYAngle,
|
||||
float minSwingZAngle,
|
||||
float maxSwingZAngle,
|
||||
float edgeLength,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) =>
|
||||
((DebugRenderer)this).DrawSwingPyramidLimits(
|
||||
in matrix,
|
||||
minSwingYAngle,
|
||||
maxSwingYAngle,
|
||||
minSwingZAngle,
|
||||
maxSwingZAngle,
|
||||
edgeLength,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawPie(float3, float, float3, float3, float, float, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawPie(
|
||||
float3 center,
|
||||
float radius,
|
||||
float3 normal,
|
||||
float3 axis,
|
||||
float minAngle,
|
||||
float maxAngle,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) =>
|
||||
((DebugRenderer)this).DrawPie(
|
||||
center,
|
||||
radius,
|
||||
normal,
|
||||
axis,
|
||||
minAngle,
|
||||
maxAngle,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="DebugRenderer.DrawTaperedCylinder(in float4x4, float, float, float, float, uint, DebugRenderer.CastShadow, DebugRenderer.DrawMode)"/>
|
||||
public void DrawTaperedCylinder(
|
||||
in float4x4 matrix,
|
||||
float top,
|
||||
float bottom,
|
||||
float topRadius,
|
||||
float bottomRadius,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) =>
|
||||
((DebugRenderer)this).DrawTaperedCylinder(
|
||||
in matrix,
|
||||
top,
|
||||
bottom,
|
||||
topRadius,
|
||||
bottomRadius,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue