API reference
Preparing search index…

ImGui.ImDrawData_ScaleClipRects

  • Scale all draw-command clipping rectangles.

    Parameters

    self

    ImDrawData handle on which this method operates.

    fb_scale

    Horizontal and vertical scale factors converting clip rectangles to framebuffer pixels.

    Returns

    void

    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.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0