pub enum RenderCommand {
Clear {
color: [f32; 4],
},
DrawSprite {
texture_id: u32,
position: Position,
size: Vec2,
source: Option<Rect>,
color: [f32; 4],
},
DrawRect {
rect: Rect,
color: [f32; 4],
},
}Expand description
Render command for batched rendering
Variants§
Trait Implementations§
Source§impl Clone for RenderCommand
impl Clone for RenderCommand
Source§fn clone(&self) -> RenderCommand
fn clone(&self) -> RenderCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderCommand
impl Debug for RenderCommand
Source§impl<'de> Deserialize<'de> for RenderCommand
impl<'de> Deserialize<'de> for RenderCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RenderCommand
impl PartialEq for RenderCommand
Source§impl Serialize for RenderCommand
impl Serialize for RenderCommand
impl StructuralPartialEq for RenderCommand
Auto Trait Implementations§
impl Freeze for RenderCommand
impl RefUnwindSafe for RenderCommand
impl Send for RenderCommand
impl Sync for RenderCommand
impl Unpin for RenderCommand
impl UnwindSafe for RenderCommand
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