[][src]Struct bevy_render::mesh::Mesh

pub struct Mesh { /* fields omitted */ }

Implementations

impl Mesh[src]

pub const ATTRIBUTE_NORMAL: &'static str[src]

pub const ATTRIBUTE_POSITION: &'static str[src]

pub const ATTRIBUTE_UV_0: &'static str[src]

pub fn new(primitive_topology: PrimitiveTopology) -> Self[src]

pub fn primitive_topology(&self) -> PrimitiveTopology[src]

pub fn set_attribute(
    &mut self,
    name: impl Into<Cow<'static, str>>,
    values: VertexAttributeValues
)
[src]

pub fn attribute(
    &self,
    name: impl Into<Cow<'static, str>>
) -> Option<&VertexAttributeValues>
[src]

pub fn set_indices(&mut self, indices: Option<Indices>)[src]

pub fn indices(&self) -> Option<&Indices>[src]

pub fn get_index_buffer_bytes(&self) -> Option<Vec<u8>>[src]

pub fn get_vertex_buffer_descriptor(&self) -> VertexBufferDescriptor[src]

pub fn get_vertex_buffer_data(&self) -> Vec<u8>[src]

Trait Implementations

impl Debug for Mesh[src]

impl From<Cube> for Mesh[src]

impl From<Icosphere> for Mesh[src]

impl From<Plane> for Mesh[src]

impl From<Quad> for Mesh[src]

impl TypeUuid for Mesh[src]

Auto Trait Implementations

impl RefUnwindSafe for Mesh

impl Send for Mesh

impl Sync for Mesh

impl Unpin for Mesh

impl UnwindSafe for Mesh

Blanket Implementations

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

impl<T> Any for T where
    T: Any

impl<T> Asset for T where
    T: TypeUuid + AssetDynamic + TypeUuidDynamic
[src]

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

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
[src]

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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<T> TypeUuidDynamic for T where
    T: TypeUuid
[src]

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