API reference
Preparing search index…

ImGui.ImDrawList_AddImage

  • Add an image rectangle to the draw list.

    Parameters

    self

    ImDrawList handle on which this method operates.

    user_texture_id
    bigint

    Renderer texture identifier (ImTextureID bigint), not an SFML texture object.

    p_min

    Address of the lower/upper bound in data_type layout; drag widgets permit null for an unbounded side.

    p_max

    Address of the lower/upper bound in data_type layout; drag widgets permit null for an unbounded side.

    Returns

    void
    • Read FAQ to understand what ImTextureID is.

    • "p_min" and "p_max" represent the upper-left and lower-right corners of the rectangle.

    • "uv_min" and "uv_max" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture.

    Implied uv_min = { x: 0, y: 0 }, uv_max = { x: 1, y: 1 }, col = 0xffffffff

    Source & inheritance

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