mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
904
Brutal.Jolt/Generated/Classes/DebugRenderer.gen.cs
Normal file
904
Brutal.Jolt/Generated/Classes/DebugRenderer.gen.cs
Normal file
|
|
@ -0,0 +1,904 @@
|
|||
// <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>
|
||||
/// Simple triangle renderer for debugging purposes.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L46">Jolt/Renderer/DebugRenderer.h:46</see>
|
||||
/// <br/>
|
||||
/// <c>class JPH_DEBUG_RENDERER_EXPORT DebugRenderer : public NonCopyable</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Simple triangle renderer for debugging purposes.
|
||||
///
|
||||
/// Inherit from this class to provide your own implementation.
|
||||
///
|
||||
/// Implement the following virtual functions:
|
||||
/// - DrawLine
|
||||
/// - DrawTriangle
|
||||
/// - DrawText3D
|
||||
/// - CreateTriangleBatch
|
||||
/// - DrawGeometry
|
||||
///
|
||||
/// Make sure you call Initialize() from the constructor of your implementation.
|
||||
///
|
||||
/// The CreateTriangleBatch is used to prepare a batch of triangles to be drawn by a single DrawGeometry call,
|
||||
/// which means that Jolt can render a complex scene much more efficiently than when each triangle in that scene would have been drawn through DrawTriangle.
|
||||
///
|
||||
/// Note that an implementation that implements CreateTriangleBatch and DrawGeometry is provided by DebugRendererSimple which can be used to start quickly.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct DebugRenderer
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Enum that determines if a shadow should be cast or not
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L90">Jolt/Renderer/DebugRenderer.h:90</see>
|
||||
/// <br/>
|
||||
/// <c>enum class ECastShadow</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public enum CastShadow : int
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// This shape should cast a shadow
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L92">Jolt/Renderer/DebugRenderer.h:92</see>
|
||||
/// <br/>
|
||||
/// <c>On</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
On,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// This shape should not cast a shadow
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L93">Jolt/Renderer/DebugRenderer.h:93</see>
|
||||
/// <br/>
|
||||
/// <c>Off</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
Off,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Determines how triangles are drawn
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L97">Jolt/Renderer/DebugRenderer.h:97</see>
|
||||
/// <br/>
|
||||
/// <c>enum class EDrawMode</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public enum DrawMode : int
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw as a solid shape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L99">Jolt/Renderer/DebugRenderer.h:99</see>
|
||||
/// <br/>
|
||||
/// <c>Solid</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
Solid,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw as wireframe
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L100">Jolt/Renderer/DebugRenderer.h:100</see>
|
||||
/// <br/>
|
||||
/// <c>Wireframe</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
Wireframe,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Determines which polygons are culled
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L265">Jolt/Renderer/DebugRenderer.h:265</see>
|
||||
/// <br/>
|
||||
/// <c>enum class ECullMode</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public enum CullMode : int
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Don't draw backfacing polygons
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L267">Jolt/Renderer/DebugRenderer.h:267</see>
|
||||
/// <br/>
|
||||
/// <c>CullBackFace</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
CullBackFace,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Don't draw front facing polygons
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L268">Jolt/Renderer/DebugRenderer.h:268</see>
|
||||
/// <br/>
|
||||
/// <c>CullFrontFace</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
CullFrontFace,
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Don't do culling and draw both sides
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L269">Jolt/Renderer/DebugRenderer.h:269</see>
|
||||
/// <br/>
|
||||
/// <c>Off</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
Off,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L317">Jolt/Renderer/DebugRenderer.h:317</see>
|
||||
/// <br/>
|
||||
/// <c>struct SwingConeLimits</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8)]
|
||||
public partial struct SwingConeLimits
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L325">Jolt/Renderer/DebugRenderer.h:325</see>
|
||||
/// <br/>
|
||||
/// <c>float mSwingYHalfAngle</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public float SwingYHalfAngle;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L326">Jolt/Renderer/DebugRenderer.h:326</see>
|
||||
/// <br/>
|
||||
/// <c>float mSwingZHalfAngle</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(4)]
|
||||
public float SwingZHalfAngle;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L335">Jolt/Renderer/DebugRenderer.h:335</see>
|
||||
/// <br/>
|
||||
/// <c>struct SwingPyramidLimits</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
||||
public partial struct SwingPyramidLimits
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L345">Jolt/Renderer/DebugRenderer.h:345</see>
|
||||
/// <br/>
|
||||
/// <c>float mMinSwingYAngle</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public float MinSwingYAngle;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L346">Jolt/Renderer/DebugRenderer.h:346</see>
|
||||
/// <br/>
|
||||
/// <c>float mMaxSwingYAngle</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(4)]
|
||||
public float MaxSwingYAngle;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L347">Jolt/Renderer/DebugRenderer.h:347</see>
|
||||
/// <br/>
|
||||
/// <c>float mMinSwingZAngle</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(8)]
|
||||
public float MinSwingZAngle;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L348">Jolt/Renderer/DebugRenderer.h:348</see>
|
||||
/// <br/>
|
||||
/// <c>float mMaxSwingZAngle</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(12)]
|
||||
public float MaxSwingZAngle;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L361">Jolt/Renderer/DebugRenderer.h:361</see>
|
||||
/// <br/>
|
||||
/// <c>struct TaperedCylinder</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
||||
public partial struct TaperedCylinder
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L371">Jolt/Renderer/DebugRenderer.h:371</see>
|
||||
/// <br/>
|
||||
/// <c>float mTop</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public float Top;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L372">Jolt/Renderer/DebugRenderer.h:372</see>
|
||||
/// <br/>
|
||||
/// <c>float mBottom</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(4)]
|
||||
public float Bottom;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L373">Jolt/Renderer/DebugRenderer.h:373</see>
|
||||
/// <br/>
|
||||
/// <c>float mTopRadius</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(8)]
|
||||
public float TopRadius;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L374">Jolt/Renderer/DebugRenderer.h:374</see>
|
||||
/// <br/>
|
||||
/// <c>float mBottomRadius</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(12)]
|
||||
public float BottomRadius;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Call once after frame is complete. Releases unused dynamically generated geometry assets.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L56">Jolt/Renderer/DebugRenderer.h:56</see>
|
||||
/// <br/>
|
||||
/// <c>void NextFrame()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void NextFrame() => Jolt.PInvoke.DebugRenderer_NextFrame(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw line
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L59">Jolt/Renderer/DebugRenderer.h:59</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void DrawLine(RVec3Arg inFrom, RVec3Arg inTo, ColorArg inColor) = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawLine(float3 from, float3 to, uint color) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawLine(this, from, to, color);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw wireframe box
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L62">Jolt/Renderer/DebugRenderer.h:62</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawWireBox(const AABox &inBox, ColorArg inColor)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawWireBox(in AABox box, uint color) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawWireBox(this, in box, color);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L63">Jolt/Renderer/DebugRenderer.h:63</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawWireBox(const OrientedBox &inBox, ColorArg inColor)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawWireBox(OrientedBox box, uint color) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawWireBox_2(this, box, color);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L64">Jolt/Renderer/DebugRenderer.h:64</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawWireBox(RMat44Arg inMatrix, const AABox &inBox, ColorArg inColor)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawWireBox(in float4x4 matrix, in AABox box, uint color) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawWireBox_3(this, in matrix, in box, color);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw a marker on a position
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L67">Jolt/Renderer/DebugRenderer.h:67</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawMarker(RVec3Arg inPosition, ColorArg inColor, float inSize)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawMarker(float3 position, uint color, float size) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawMarker(this, position, color, size);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw an arrow
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L70">Jolt/Renderer/DebugRenderer.h:70</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawArrow(RVec3Arg inFrom, RVec3Arg inTo, ColorArg inColor, float inSize)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawArrow(float3 from, float3 to, uint color, float size) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawArrow(this, from, to, color, size);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw coordinate system (3 arrows, x = red, y = green, z = blue)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L73">Jolt/Renderer/DebugRenderer.h:73</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawCoordinateSystem(RMat44Arg inTransform, float inSize = 1.0f)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawCoordinateSystem(in float4x4 transform, float size = 1f) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawCoordinateSystem(this, in transform, size);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw a plane through inPoint with normal inNormal
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L76">Jolt/Renderer/DebugRenderer.h:76</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawPlane(RVec3Arg inPoint, Vec3Arg inNormal, ColorArg inColor, float inSize)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawPlane(float3 point, float3 normal, uint color, float size) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawPlane(this, point, normal, color, size);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw wireframe triangle
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L79">Jolt/Renderer/DebugRenderer.h:79</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawWireTriangle(RVec3Arg inV1, RVec3Arg inV2, RVec3Arg inV3, ColorArg inColor)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawWireTriangle(float3 v1, float3 v2, float3 v3, uint color) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawWireTriangle(this, v1, v2, v3, color);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw wireframe sphere
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L86">Jolt/Renderer/DebugRenderer.h:86</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawWireSphere(RVec3Arg inCenter, float inRadius, ColorArg inColor, int inLevel = 3)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawWireSphere(float3 center, float radius, uint color, int level = 3) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawWireSphere(this, center, radius, color, level);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L87">Jolt/Renderer/DebugRenderer.h:87</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawWireUnitSphere(RMat44Arg inMatrix, ColorArg inColor, int inLevel = 3)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawWireUnitSphere(in float4x4 matrix, uint color, int level = 3) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawWireUnitSphere(this, in matrix, color, level);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw a single back face culled triangle
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L104">Jolt/Renderer/DebugRenderer.h:104</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void DrawTriangle(RVec3Arg inV1, RVec3Arg inV2, RVec3Arg inV3, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::Off) = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawTriangle(
|
||||
float3 v1,
|
||||
float3 v2,
|
||||
float3 v3,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.Off
|
||||
) => Jolt.PInvoke.DebugRenderer_DrawTriangle(this, v1, v2, v3, color, castShadow);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw a box
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L107">Jolt/Renderer/DebugRenderer.h:107</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawBox(const AABox &inBox, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawBox(
|
||||
in AABox box,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => Jolt.PInvoke.DebugRenderer_DrawBox(this, in box, color, castShadow, drawMode);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L108">Jolt/Renderer/DebugRenderer.h:108</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawBox(RMat44Arg inMatrix, const AABox &inBox, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawBox(
|
||||
in float4x4 matrix,
|
||||
in AABox box,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => Jolt.PInvoke.DebugRenderer_DrawBox_2(this, in matrix, in box, color, castShadow, drawMode);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw a sphere
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L111">Jolt/Renderer/DebugRenderer.h:111</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawSphere(RVec3Arg inCenter, float inRadius, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawSphere(
|
||||
float3 center,
|
||||
float radius,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => Jolt.PInvoke.DebugRenderer_DrawSphere(this, center, radius, color, castShadow, drawMode);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L112">Jolt/Renderer/DebugRenderer.h:112</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawUnitSphere(RMat44Arg inMatrix, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawUnitSphere(
|
||||
in float4x4 matrix,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => Jolt.PInvoke.DebugRenderer_DrawUnitSphere(this, in matrix, color, castShadow, drawMode);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw a capsule with one half sphere at (0, -inHalfHeightOfCylinder, 0) and the other half sphere at (0,
|
||||
/// inHalfHeightOfCylinder, 0) and radius inRadius. The capsule will be transformed by inMatrix.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L116">Jolt/Renderer/DebugRenderer.h:116</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawCapsule(RMat44Arg inMatrix, float inHalfHeightOfCylinder, float inRadius, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawCapsule(
|
||||
in float4x4 matrix,
|
||||
float halfHeightOfCylinder,
|
||||
float radius,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawCapsule(
|
||||
this,
|
||||
in matrix,
|
||||
halfHeightOfCylinder,
|
||||
radius,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw a cylinder with top (0, inHalfHeight, 0) and bottom (0, -inHalfHeight, 0) and radius inRadius. The
|
||||
/// cylinder will be transformed by inMatrix
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L120">Jolt/Renderer/DebugRenderer.h:120</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawCylinder(RMat44Arg inMatrix, float inHalfHeight, float inRadius, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void DrawCylinder(
|
||||
in float4x4 matrix,
|
||||
float halfHeight,
|
||||
float radius,
|
||||
uint color,
|
||||
DebugRenderer.CastShadow castShadow = DebugRenderer.CastShadow.On,
|
||||
DebugRenderer.DrawMode drawMode = DebugRenderer.DrawMode.Solid
|
||||
) => Jolt.PInvoke.DebugRenderer_DrawCylinder(this, in matrix, halfHeight, radius, color, castShadow, drawMode);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw a bottomless cone.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L131">Jolt/Renderer/DebugRenderer.h:131</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawOpenCone(RVec3Arg inTop, Vec3Arg inAxis, Vec3Arg inPerpendicular, float inHalfAngle, float inLength, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Draw a bottomless cone.
|
||||
/// @param inTop Top of cone, center of base is at inTop + inAxis.
|
||||
/// @param inAxis Height and direction of cone
|
||||
/// @param inPerpendicular Perpendicular vector to inAxis.
|
||||
/// @param inHalfAngle Specifies the cone angle in radians (angle measured between inAxis and cone surface).
|
||||
/// @param inLength The length of the cone.
|
||||
/// @param inColor Color to use for drawing the cone.
|
||||
/// @param inCastShadow determines if this geometry should cast a shadow or not.
|
||||
/// @param inDrawMode determines if we draw the geometry solid or in wireframe.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
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
|
||||
) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawOpenCone(
|
||||
this,
|
||||
top,
|
||||
axis,
|
||||
perpendicular,
|
||||
halfAngle,
|
||||
length,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draws cone rotation limits as used by the SwingTwistConstraintPart.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L141">Jolt/Renderer/DebugRenderer.h:141</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawSwingConeLimits(RMat44Arg inMatrix, float inSwingYHalfAngle, float inSwingZHalfAngle, float inEdgeLength, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Draws cone rotation limits as used by the SwingTwistConstraintPart.
|
||||
/// @param inMatrix Matrix that transforms from constraint space to world space
|
||||
/// @param inSwingYHalfAngle See SwingTwistConstraintPart
|
||||
/// @param inSwingZHalfAngle See SwingTwistConstraintPart
|
||||
/// @param inEdgeLength Size of the edge of the cone shape
|
||||
/// @param inColor Color to use for drawing the cone.
|
||||
/// @param inCastShadow determines if this geometry should cast a shadow or not.
|
||||
/// @param inDrawMode determines if we draw the geometry solid or in wireframe.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
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
|
||||
) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawSwingConeLimits(
|
||||
this,
|
||||
in matrix,
|
||||
swingYHalfAngle,
|
||||
swingZHalfAngle,
|
||||
edgeLength,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draws rotation limits as used by the SwingTwistConstraintPart.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L153">Jolt/Renderer/DebugRenderer.h:153</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawSwingPyramidLimits(RMat44Arg inMatrix, float inMinSwingYAngle, float inMaxSwingYAngle, float inMinSwingZAngle, float inMaxSwingZAngle, float inEdgeLength, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Draws rotation limits as used by the SwingTwistConstraintPart.
|
||||
/// @param inMatrix Matrix that transforms from constraint space to world space
|
||||
/// @param inMinSwingYAngle See SwingTwistConstraintPart
|
||||
/// @param inMaxSwingYAngle See SwingTwistConstraintPart
|
||||
/// @param inMinSwingZAngle See SwingTwistConstraintPart
|
||||
/// @param inMaxSwingZAngle See SwingTwistConstraintPart
|
||||
/// @param inEdgeLength Size of the edge of the cone shape
|
||||
/// @param inColor Color to use for drawing the cone.
|
||||
/// @param inCastShadow determines if this geometry should cast a shadow or not.
|
||||
/// @param inDrawMode determines if we draw the geometry solid or in wireframe.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
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
|
||||
) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawSwingPyramidLimits(
|
||||
this,
|
||||
in matrix,
|
||||
minSwingYAngle,
|
||||
maxSwingYAngle,
|
||||
minSwingZAngle,
|
||||
maxSwingZAngle,
|
||||
edgeLength,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw a pie (part of a circle).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L165">Jolt/Renderer/DebugRenderer.h:165</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawPie(RVec3Arg inCenter, float inRadius, Vec3Arg inNormal, Vec3Arg inAxis, float inMinAngle, float inMaxAngle, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Draw a pie (part of a circle).
|
||||
/// @param inCenter The center of the circle.
|
||||
/// @param inRadius Radius of the circle.
|
||||
/// @param inNormal The plane normal in which the pie resides.
|
||||
/// @param inAxis The axis that defines an angle of 0 radians.
|
||||
/// @param inMinAngle The pie will be drawn between [inMinAngle, inMaxAngle] (in radians).
|
||||
/// @param inMaxAngle The pie will be drawn between [inMinAngle, inMaxAngle] (in radians).
|
||||
/// @param inColor Color to use for drawing the pie.
|
||||
/// @param inCastShadow determines if this geometry should cast a shadow or not.
|
||||
/// @param inDrawMode determines if we draw the geometry solid or in wireframe.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
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
|
||||
) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawPie(
|
||||
this,
|
||||
center,
|
||||
radius,
|
||||
normal,
|
||||
axis,
|
||||
minAngle,
|
||||
maxAngle,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw a tapered cylinder
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L176">Jolt/Renderer/DebugRenderer.h:176</see>
|
||||
/// <br/>
|
||||
/// <c>void DrawTaperedCylinder(RMat44Arg inMatrix, float inTop, float inBottom, float inTopRadius, float inBottomRadius, ColorArg inColor, ECastShadow inCastShadow = ECastShadow::On, EDrawMode inDrawMode = EDrawMode::Solid)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Draw a tapered cylinder
|
||||
/// @param inMatrix Matrix that transforms the cylinder to world space.
|
||||
/// @param inTop Top of cylinder (along Y axis)
|
||||
/// @param inBottom Bottom of cylinder (along Y axis)
|
||||
/// @param inTopRadius Radius at the top
|
||||
/// @param inBottomRadius Radius at the bottom
|
||||
/// @param inColor Color to use for drawing the pie.
|
||||
/// @param inCastShadow determines if this geometry should cast a shadow or not.
|
||||
/// @param inDrawMode determines if we draw the geometry solid or in wireframe.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
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
|
||||
) =>
|
||||
Jolt.PInvoke.DebugRenderer_DrawTaperedCylinder(
|
||||
this,
|
||||
in matrix,
|
||||
top,
|
||||
bottom,
|
||||
topRadius,
|
||||
bottomRadius,
|
||||
color,
|
||||
castShadow,
|
||||
drawMode
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw text
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L285">Jolt/Renderer/DebugRenderer.h:285</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void DrawText3D(RVec3Arg inPosition, const string_view &inString, ColorArg inColor = Color::sWhite, float inHeight = 0.5f) = 0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public unsafe void DrawText3D(float3 position, RefString8 @string, uint color, float height = 0.5f)
|
||||
{
|
||||
fixed (byte* @string_fixed = @string)
|
||||
{
|
||||
Jolt.PInvoke.DebugRenderer_DrawText3D(this, position, @string_fixed, color, height);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Singleton instance
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L179">Jolt/Renderer/DebugRenderer.h:179</see>
|
||||
/// <br/>
|
||||
/// <c>static DebugRenderer * sInstance</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle is borrowed from its owner; don't Dispose it.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static DebugRenderer GetInstance() => Jolt.PInvoke.DebugRenderer_GetInstance();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Singleton instance
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Renderer/DebugRenderer.h#L179">Jolt/Renderer/DebugRenderer.h:179</see>
|
||||
/// <br/>
|
||||
/// <c>static DebugRenderer * sInstance</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetInstance(DebugRenderer value) => Jolt.PInvoke.DebugRenderer_SetInstance(value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue