Merge pull request #369 from toyboot4e/master

Add comments to DrawCmd
This commit is contained in:
Joonas Javanainen 2020-11-06 18:19:14 +02:00 committed by GitHub
commit cf2b03b1e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
},