diff --git a/imgui-gfx-renderer/src/lib.rs b/imgui-gfx-renderer/src/lib.rs index b01cbab..280a823 100644 --- a/imgui-gfx-renderer/src/lib.rs +++ b/imgui-gfx-renderer/src/lib.rs @@ -212,6 +212,7 @@ where DrawCmdParams { clip_rect, texture_id, + .. }, } => { let clip_rect = [ diff --git a/imgui-glium-renderer/src/lib.rs b/imgui-glium-renderer/src/lib.rs index 8fa4197..7280899 100644 --- a/imgui-glium-renderer/src/lib.rs +++ b/imgui-glium-renderer/src/lib.rs @@ -157,6 +157,7 @@ impl GliumRenderer { DrawCmdParams { clip_rect, texture_id, + .. }, } => { let idx_end = idx_start + count; diff --git a/src/render/draw_data.rs b/src/render/draw_data.rs index 07b9a19..0d90105 100644 --- a/src/render/draw_data.rs +++ b/src/render/draw_data.rs @@ -164,6 +164,8 @@ impl<'a> Iterator for DrawCmdIterator<'a> { let cmd_params = DrawCmdParams { clip_rect: cmd.ClipRect.into(), texture_id: TextureId::from(cmd.TextureId), + vtx_offset: cmd.VtxOffset as usize, + idx_offset: cmd.IdxOffset as usize, }; if let Some(raw_callback) = cmd.UserCallback { DrawCmd::RawCallback { @@ -186,6 +188,8 @@ pub type DrawIdx = sys::ImDrawIdx; pub struct DrawCmdParams { pub clip_rect: [f32; 4], pub texture_id: TextureId, + pub vtx_offset: usize, + pub idx_offset: usize, } pub enum DrawCmd {