mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 21:48:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
29
Brutal.ImGui/Generated/Delegates/ImDrawCallback.gen.cs
Normal file
29
Brutal.ImGui/Generated/Delegates/ImDrawCallback.gen.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// <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);
|
||||
}
|
||||
Loading…
Reference in a new issue