mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-27 21:38:34 +00:00
commit
cf2b03b1e1
@ -198,6 +198,7 @@ pub type DrawIdx = sys::ImDrawIdx;
|
|||||||
|
|
||||||
#[derive(Copy, Clone, Debug, PartialEq)]
|
#[derive(Copy, Clone, Debug, PartialEq)]
|
||||||
pub struct DrawCmdParams {
|
pub struct DrawCmdParams {
|
||||||
|
/// left, up, right, down
|
||||||
pub clip_rect: [f32; 4],
|
pub clip_rect: [f32; 4],
|
||||||
pub texture_id: TextureId,
|
pub texture_id: TextureId,
|
||||||
pub vtx_offset: usize,
|
pub vtx_offset: usize,
|
||||||
@ -207,6 +208,7 @@ pub struct DrawCmdParams {
|
|||||||
/// A draw command
|
/// A draw command
|
||||||
pub enum DrawCmd {
|
pub enum DrawCmd {
|
||||||
Elements {
|
Elements {
|
||||||
|
/// The number of indices used for this draw command
|
||||||
count: usize,
|
count: usize,
|
||||||
cmd_params: DrawCmdParams,
|
cmd_params: DrawCmdParams,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user