//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public static partial class ImDrawDataExtensions
{
///
///
/// C++:
/// imgui.h:3515
/// ,
/// imgui_draw.cpp:2252
///
void Clear()
///
///
///
///
/// Functions
///
///
public static unsafe void Clear(this ImDrawDataPtr target) => PInvoke.ImDrawData_Clear(target);
///
///
/// Helper to add an external draw list into an existing ImDrawData.
///
///
/// C++:
/// imgui.h:3516
/// ,
/// imgui_draw.cpp:2309
///
void AddDrawList(ImDrawList* draw_list)
///
///
///
///
/// Functions
///
///
public static unsafe void AddDrawList(this ImDrawDataPtr target, ImDrawListPtr drawList) =>
PInvoke.ImDrawData_AddDrawList(target, drawList);
///
///
/// 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!
///
///
/// C++:
/// imgui.h:3517
/// ,
/// imgui_draw.cpp:2317
///
void DeIndexAllBuffers()
///
///
///
///
/// Functions
///
///
/// 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!
///
///
public static unsafe void DeIndexAllBuffers(this ImDrawDataPtr target) =>
PInvoke.ImDrawData_DeIndexAllBuffers(target);
///
///
/// 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.
///
///
/// C++:
/// imgui.h:3518
/// ,
/// imgui_draw.cpp:2337
///
void ScaleClipRects(const ImVec2& fb_scale)
///
///
///
///
/// Functions
///
///
/// Helper to scale the ClipRect field of each ImDrawCmd.
/// Use if your final output buffer is at a different scale than draw_data->DisplaySize,
/// or if there is a difference between your window resolution and framebuffer resolution.
///
///
public static unsafe void ScaleClipRects(this ImDrawDataPtr target, in float2 fbScale)
{
fixed (float2* fbScale_fixed = &fbScale)
{
PInvoke.ImDrawData_ScaleClipRects(target, fbScale_fixed);
}
}
}
}