Enum pixel_widgets::draw::Command [−][src]
pub enum Command {
Nop,
Clip {
scissor: Rectangle,
},
Colored {
offset: usize,
count: usize,
},
Textured {
texture: usize,
offset: usize,
count: usize,
},
}Expand description
A draw Command that is to be translated to a draw command specific to the backend
Variants
Do nothing. Appending a Nop to another command will flush the other command.
Sets a new scissor rect, which is used to confine geometry to a certain area on screen.
Fields of Clip
scissor: RectangleThe scissor rectangle
Draw a list of vertices without an active texture
Fields of Colored
offset: usizeOffset in vertices from the start of the vertex buffer
count: usizeThe number of vertices to draw
Draw a list of vertices with the active texture denoted by it’s index
Fields of Textured
texture: usizeTexture id to be used
offset: usizeOffset in vertices from the start of the vertex buffer
count: usizeThe number of vertices to draw
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Command
impl UnwindSafe for Command
Blanket Implementations
Mutably borrows from an owned value. Read more