brutal/Brutal.ImGui/Generated/Delegates/ImDrawCallback.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

29 lines
1.5 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.InteropServices;
namespace Brutal.ImGuiApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3221">imgui.h:3221</see>
/// <br/><c>typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h]
/// NB: You most likely do NOT need to use draw callbacks just to create your own widget or customized UI rendering,
/// you can poke into the draw list for that! Draw callback may be useful for example to:
/// A) Change your GPU render state,
/// B) render a complex 3D scene inside a UI element without an intermediate texture/render target, etc.
/// The expected behavior from your rendering function is 'if (cmd.UserCallback != NULL) { cmd.UserCallback(parent_list, cmd); } else { RenderTriangles() }'
/// If you want to override the signature of ImDrawCallback, you can simply use e.g. '#define ImDrawCallback MyDrawCallback' (in imconfig.h) + update rendering backend accordingly.
/// </code>
/// </remarks>
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void ImDrawCallback(ImDrawList* parent_list, ImDrawCmd* cmd);
}