imgui_draw
Append draw commands for lines, shapes, gradients, ellipses, arcs, text, polygons, and bezier curves to a named layer in an ImGui window, preserving prior geometry.
Instructions
Append draw commands to a named layer in a window. Repeated calls preserve earlier geometry by default. Supports lines, shapes, gradients, ellipses, arcs, text, polygons, and bezier curves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Named draw layer id (default: draw_list) | draw_list |
| mode | No | Append to the layer (default) or replace it | append |
| window | Yes | Target window id | |
| commands | Yes | Array of draw commands to execute |