struct ImGui::ImDrawCmd
- ImGui::ImDrawCmd
- Struct
- Value
- Object
Overview
Included Modules
- ImGui::ClassType(LibImGui::ImDrawCmd)
Defined in:
obj.crConstructors
-
.new : ImDrawCmd
Also ensure our padding fields are zeroed
Instance Method Summary
-
#clip_rect : ImVec4
4*4 Clipping rectangle (x1, y1, x2, y2).
- #clip_rect=(clip_rect : ImVec4)
-
#elem_count : UInt32
4 Number of indices (multiple of 3) to be rendered as triangles.
- #elem_count=(elem_count : UInt32)
- #get_tex_id : ImTextureID
-
#idx_offset : UInt32
4 Start offset in index buffer.
- #idx_offset=(idx_offset : UInt32)
-
#texture_id : ImTextureID
4-8 User-provided texture ID.
- #texture_id=(texture_id : ImTextureID)
- #to_unsafe : Pointer(T)
-
#user_callback : ImDrawCallback
4-8 If != NULL, call the function instead of rendering the vertices.
- #user_callback=(user_callback : ImDrawCallback)
-
#user_callback_data : Pointer(Void)
4-8 The draw callback code can access this.
- #user_callback_data=(user_callback_data : Pointer(Void))
-
#vtx_offset : UInt32
4 Start offset in vertex buffer.
- #vtx_offset=(vtx_offset : UInt32)
Constructor Detail
Also ensure our padding fields are zeroed
Instance Method Detail
4*4 Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates
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[].
4-8 User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas.
4-8 If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally.
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.