Skip to content

Commit

Permalink
Merge pull request imgui-rs#369 from toyboot4e/master
Browse files Browse the repository at this point in the history
Add comments to DrawCmd
  • Loading branch information
Gekkio authored Nov 6, 2020
2 parents 20385f4 + ee04e0b commit cf2b03b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/render/draw_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
Expand Down

0 comments on commit cf2b03b

Please sign in to comment.