IMGUI_APIvoidAddCallback(ImDrawCallbackcallback,void*callback_data);// Your rendering function must check for 'user_callback' in ImDrawCmd and call the function instead of rendering triangles.
@ -1087,8 +1087,8 @@ struct ImDrawData
{
ImDrawList**cmd_lists;
intcmd_lists_count;
inttotal_vtx_count;// For convenience, sum of all cmd_lists vtx_buffer.size()
inttotal_idx_count;// For convenience, sum of all cmd_lists idx_buffer.size()
inttotal_vtx_count;// For convenience, sum of all cmd_lists vtx_buffer.Size
inttotal_idx_count;// For convenience, sum of all cmd_lists idx_buffer.Size
// Functions
voidDeIndexAllBuffers();// For backward compatibility: convert all buffers from indexed to de-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering!