From ee04e0b9553d41540854d7ce77e4f072cc486c6f Mon Sep 17 00:00:00 2001 From: toyboot4e Date: Thu, 24 Sep 2020 03:23:37 +0900 Subject: [PATCH] Add comments to DrawCmd --- src/render/draw_data.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render/draw_data.rs b/src/render/draw_data.rs index 4f0dabc..43e05da 100644 --- a/src/render/draw_data.rs +++ b/src/render/draw_data.rs @@ -198,6 +198,7 @@ pub type DrawIdx = sys::ImDrawIdx; #[derive(Copy, Clone, Debug, PartialEq)] pub struct DrawCmdParams { + /// left, up, right, down pub clip_rect: [f32; 4], pub texture_id: TextureId, pub vtx_offset: usize, @@ -207,6 +208,7 @@ pub struct DrawCmdParams { /// A draw command pub enum DrawCmd { Elements { + /// The number of indices used for this draw command count: usize, cmd_params: DrawCmdParams, },