ImDrawCmd

imguicpp.ImDrawCmd (extern class)

Static Members

getTexID(self: cpp.Star): cpp.UInt64

== (TexRef._TexData ? TexRef._TexData->TexID : TexRef._TexID)

Name Type
self cpp.Star
Returns
cpp.UInt64

Instance Members

clipRect: ImVec4

4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates


16 // Reference to a font/texture atlas (where backend called ImTextureData::SetTexID()) or to a user-provided texture ID (via e.g. ImGui::Image() calls). Both will lead to a ImTextureID value.


vtxOffset: UInt

4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices.


idxOffset: UInt

4 // Start offset in index buffer.


elemCount: UInt

4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[].


userCallback: ImGuiOpaqueCallback

4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally.


userCallbackData: cpp.RawPointer<cpp.Void>

4-8 // Callback user data (when UserCallback != NULL). If called AddCallback() with size == 0, this is a copy of the AddCallback() argument. If called AddCallback() with size > 0, this is pointing to a buffer where data is stored.


userCallbackDataSize: Int

4 // Size of callback user data when using storage, otherwise 0.


userCallbackDataOffset: Int

4 // [Internal] Offset of callback user data when using storage, otherwise -1.

Metadata

Name Parameters
:structAccess -
:include "linc_imgui.h"