[−][src]Struct bevy::prelude::Draw
A component that indicates how to draw an entity.
Fields
is_visible: bool
is_transparent: bool
render_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]
&mut self,
indices: Range<u32>,
base_vertex: i32,
instances: Range<u32>
)
pub fn render_command(&mut self, render_command: RenderCommand)
[src]
Trait Implementations
impl Default for Draw
[src]
impl DeserializeProperty for Draw
[src]
fn deserialize(
deserializer: &mut dyn Deserializer,
property_type_registry: &PropertyTypeRegistry
) -> Result<Box<dyn Property + 'static>, Error>
[src]
deserializer: &mut dyn Deserializer,
property_type_registry: &PropertyTypeRegistry
) -> Result<Box<dyn Property + 'static>, Error>
impl Properties for Draw
[src]
fn prop(&self, name: &str) -> Option<&(dyn Property + 'static)>
[src]
fn prop_mut(&mut self, name: &str) -> Option<&mut (dyn Property + 'static)>
[src]
fn prop_with_index(&self, index: usize) -> Option<&(dyn Property + 'static)>
[src]
fn prop_with_index_mut(
&mut self,
index: usize
) -> Option<&mut (dyn Property + 'static)>
[src]
&mut self,
index: usize
) -> Option<&mut (dyn Property + 'static)>
fn prop_name(&self, index: usize) -> Option<&str>
[src]
fn prop_len(&self) -> usize
[src]
fn iter_props(&self) -> PropertyIter
[src]
fn set_prop(&mut self, name: &str, value: &(dyn Property + 'static))
[src]
fn to_dynamic(&self) -> DynamicProperties
[src]
impl Property for Draw
[src]
fn type_name(&self) -> &str
[src]
fn any(&self) -> &(dyn Any + 'static)
[src]
fn any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
fn clone_prop(&self) -> Box<dyn Property + 'static>
[src]
fn set(&mut self, value: &(dyn Property + 'static))
[src]
fn apply(&mut self, value: &(dyn Property + 'static))
[src]
fn as_properties(&self) -> Option<&(dyn Properties + 'static)>
[src]
fn serializable(
&'a self,
registry: &'a PropertyTypeRegistry
) -> Serializable<'a>
[src]
&'a self,
registry: &'a PropertyTypeRegistry
) -> Serializable<'a>
fn property_type(&self) -> PropertyType
[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]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T> FromResources for T where
T: Default,
[src]
T: Default,
fn from_resources(_resources: &Resources) -> T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<P> PropertiesVal for P where
P: Properties,
[src]
P: Properties,
fn prop_val<T>(&self, name: &str) -> Option<&T> where
T: 'static,
[src]
T: 'static,
fn set_prop_val<T>(&mut self, name: &str, value: T) where
T: 'static,
[src]
T: 'static,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,