// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Renderer/DebugRendererSimple.h:37 ///
/// class JPH_DEBUG_RENDERER_EXPORT DebugRendererSimple : public DebugRenderer ///
///
/// /// /// 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 &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. /// /// [InteropHandle] public readonly partial struct DebugRendererSimple { /// /// /// C++: /// Jolt/Renderer/DebugRendererSimple.h:47 ///
/// void SetCameraPos(RVec3Arg inCameraPos) ///
///
/// /// /// Should be called every frame by the application to provide the camera position. /// This is used to determine the correct LOD for rendering. /// /// public void SetCameraPos(float3 cameraPos) => Jolt.PInvoke.DebugRendererSimple_SetCameraPos(this, cameraPos); /// /// /// C++: /// Jolt/Renderer/DebugRendererSimple.h:54 ///
/// virtual void DrawTriangle(RVec3Arg inV1, RVec3Arg inV2, RVec3Arg inV3, ColorArg inColor, ECastShadow inCastShadow) override ///
///
/// /// /// Fallback implementation that uses DrawLine to draw a triangle (override this if you have a version that /// renders solid triangles) /// /// 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); } }