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

102 lines
4.4 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public static partial class ImDrawDataExtensions
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3515">imgui.h:3515</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2252">imgui_draw.cpp:2252</see>
/// <br/><c>void Clear()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Functions
/// </para>
/// </remarks>
public static unsafe void Clear(this ImDrawDataPtr target) => PInvoke.ImDrawData_Clear(target);
/// <summary>
/// <para>
/// Helper to add an external draw list into an existing ImDrawData.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3516">imgui.h:3516</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2309">imgui_draw.cpp:2309</see>
/// <br/><c>void AddDrawList(ImDrawList* draw_list)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Functions
/// </para>
/// </remarks>
public static unsafe void AddDrawList(this ImDrawDataPtr target, ImDrawListPtr drawList) =>
PInvoke.ImDrawData_AddDrawList(target, drawList);
/// <summary>
/// <para>
/// Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this
/// is slow and most likely a waste of resources. Always prefer indexed rendering!
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3517">imgui.h:3517</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2317">imgui_draw.cpp:2317</see>
/// <br/><c>void DeIndexAllBuffers()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Functions
/// </para>
/// <para>
/// For backward compatibility: convert all buffers from indexed to de-indexed, in case you cannot render
/// indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering!
/// </para>
/// </remarks>
public static unsafe void DeIndexAllBuffers(this ImDrawDataPtr target) =>
PInvoke.ImDrawData_DeIndexAllBuffers(target);
/// <summary>
/// <para>
/// Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different
/// scale than Dear ImGui expects, or if there is a difference between your window resolution and
/// framebuffer resolution.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3518">imgui.h:3518</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_draw.cpp#L2337">imgui_draw.cpp:2337</see>
/// <br/><c>void ScaleClipRects(const ImVec2&amp; fb_scale)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Functions
/// </para>
/// <code>
/// Helper to scale the ClipRect field of each ImDrawCmd.
/// Use if your final output buffer is at a different scale than draw_data-&gt;DisplaySize,
/// or if there is a difference between your window resolution and framebuffer resolution.
/// </code>
/// </remarks>
public static unsafe void ScaleClipRects(this ImDrawDataPtr target, in float2 fbScale)
{
fixed (float2* fbScale_fixed = &fbScale)
{
PInvoke.ImDrawData_ScaleClipRects(target, fbScale_fixed);
}
}
}
}