[][src]Struct bevy::prelude::Draw

pub struct Draw {
    pub is_visible: bool,
    pub is_transparent: bool,
    pub render_commands: Vec<RenderCommand>,
}

A component that indicates how to draw an entity.

Fields

is_visible: boolis_transparent: boolrender_commands: Vec<RenderCommand>

Implementations

impl Draw[src]

pub fn clear_render_commands(&mut self)[src]

pub fn set_pipeline(&mut self, pipeline: Handle<PipelineDescriptor>)[src]

pub fn set_vertex_buffer(&mut self, slot: u32, buffer: BufferId, offset: u64)[src]

pub fn set_index_buffer(&mut self, buffer: BufferId, offset: u64)[src]

pub fn set_bind_group(&mut self, index: u32, bind_group: &BindGroup)[src]

pub fn draw_indexed(
    &mut self,
    indices: Range<u32>,
    base_vertex: i32,
    instances: Range<u32>
)
[src]

pub fn render_command(&mut self, render_command: RenderCommand)[src]

Trait Implementations

impl Default for Draw[src]

impl DeserializeProperty for Draw[src]

impl Properties for Draw[src]

impl Property for Draw[src]

Auto Trait Implementations

impl RefUnwindSafe for Draw

impl Send for Draw

impl Sync for Draw

impl Unpin for Draw

impl UnwindSafe for Draw

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T> FromResources for T where
    T: Default
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<P> PropertiesVal for P where
    P: Properties
[src]

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,