API reference
Preparing search index…

ImGui.ImDrawList_PrimReserve

  • Reserve vertex and index space for drawing primitives.

    Parameters

    self

    ImDrawList handle on which this method operates.

    idx_count
    number

    Number of index/vertex entries to reserve or release in the current draw-list buffers.

    vtx_count
    number

    Number of index/vertex entries to reserve or release in the current draw-list buffers.

    Returns

    void
    • We render triangles (three vertices)
    • Reserve space for all primitives with ImDrawList_PrimReserve(self, idx_count, vtx_count) beforehand.
    Source & inheritance

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