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§
Nop
Do nothing. Appending a Nop
to another command will flush the other command.
Clip
Sets a new scissor rect, which is used to confine geometry to a certain area on screen.
Colored
Draw a list of vertices without an active texture
Fields
§
offset: usize
Offset in vertices from the start of the vertex buffer
Textured
Draw a list of vertices with the active texture denoted by it’s index
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more