[]Struct bevy::render::prelude::Mesh

pub struct Mesh { /* fields omitted */ }

Implementations

impl Mesh

pub const ATTRIBUTE_NORMAL: &'static str

pub const ATTRIBUTE_POSITION: &'static str

pub const ATTRIBUTE_UV_0: &'static str

pub fn new(primitive_topology: PrimitiveTopology) -> Mesh

pub fn primitive_topology(&self) -> PrimitiveTopology

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

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

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

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

pub fn get_index_buffer_bytes(&self) -> Option<Vec<u8, Global>>

pub fn get_vertex_buffer_descriptor(&self) -> VertexBufferDescriptor

pub fn get_vertex_buffer_data(&self) -> Vec<u8, Global>

Notable traits for Vec<u8, Global>

impl Write for Vec<u8, Global>

Trait Implementations

impl Debug for Mesh

impl From<Box> for Mesh

impl From<Cube> for Mesh

impl From<Icosphere> for Mesh

impl From<Plane> for Mesh

impl From<Quad> for Mesh

impl TypeUuid for Mesh

Auto Trait Implementations

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

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

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> Instrument 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

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

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