mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,78 @@
|
|||
// <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/Renderer/DebugRendererSimple.h#L37">Jolt/Renderer/DebugRendererSimple.h:37</see>
|
||||
/// <br/>
|
||||
/// <c>class JPH_DEBUG_RENDERER_EXPORT DebugRendererSimple : public DebugRenderer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Inherit from this class to simplify implementing a debug renderer, start with this implementation:
|
||||
///
|
||||
/// class MyDebugRenderer : public JPH::DebugRendererSimple
|
||||
/// {
|
||||
/// public:
|
||||
/// virtual void DrawLine(JPH::RVec3Arg inFrom, JPH::RVec3Arg inTo, JPH::ColorArg inColor) override
|
||||
/// {
|
||||
/// // Implement
|
||||
/// }
|
||||
///
|
||||
/// virtual void DrawTriangle(JPH::RVec3Arg inV1, JPH::RVec3Arg inV2, JPH::RVec3Arg inV3, JPH::ColorArg inColor, ECastShadow inCastShadow) override
|
||||
/// {
|
||||
/// // Implement
|
||||
/// }
|
||||
///
|
||||
/// virtual void DrawText3D(JPH::RVec3Arg inPosition, const string_view &amp;inString, JPH::ColorArg inColor, float inHeight) override
|
||||
/// {
|
||||
/// // Implement
|
||||
/// }
|
||||
/// };
|
||||
///
|
||||
/// Note that this class is meant to be a quick start for implementing a debug renderer, it is not the most efficient way to implement a debug renderer.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct DebugRendererSimple
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererSimple.h#L47">Jolt/Renderer/DebugRendererSimple.h:47</see>
|
||||
/// <br/>
|
||||
/// <c>void SetCameraPos(RVec3Arg inCameraPos)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Should be called every frame by the application to provide the camera position.
|
||||
/// This is used to determine the correct LOD for rendering.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public void SetCameraPos(float3 cameraPos) => Jolt.PInvoke.DebugRendererSimple_SetCameraPos(this, cameraPos);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Renderer/DebugRendererSimple.h#L54">Jolt/Renderer/DebugRendererSimple.h:54</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void DrawTriangle(RVec3Arg inV1, RVec3Arg inV2, RVec3Arg inV3, ColorArg inColor, ECastShadow inCastShadow) override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Fallback implementation that uses DrawLine to draw a triangle (override this if you have a version that
|
||||
/// renders solid triangles)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void DrawTriangle(float3 v1, float3 v2, float3 v3, uint color, DebugRenderer.ECastShadow castShadow) => Jolt.PInvoke.DebugRendererSimple_DrawTriangle(this, v1, v2, v3, color, castShadow);
|
||||
public static implicit operator DebugRenderer(DebugRendererSimple value) => Jolt.PInvoke.DebugRendererSimple_AsDebugRenderer(value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue