Struct three_d::VertexBuffer[][src]

pub struct VertexBuffer { /* fields omitted */ }

A buffer containing per vertex data, for example positions, normals, uv coordinates or colors (see also use_attribute, use_attribute_vec2, etc.).

Implementations

impl VertexBuffer[src]

pub fn new_with_static_u8(
    context: &Context,
    data: &[u8]
) -> Result<VertexBuffer, Error>
[src]

pub fn fill_with_static_u8(&mut self, data: &[u8])[src]

pub fn new_with_dynamic_u8(
    context: &Context,
    data: &[u8]
) -> Result<VertexBuffer, Error>
[src]

pub fn fill_with_dynamic_u8(&mut self, data: &[u8])[src]

pub fn new_with_static_f32(
    context: &Context,
    data: &[f32]
) -> Result<VertexBuffer, Error>
[src]

pub fn fill_with_static_f32(&mut self, data: &[f32])[src]

pub fn new_with_dynamic_f32(
    context: &Context,
    data: &[f32]
) -> Result<VertexBuffer, Error>
[src]

pub fn fill_with_dynamic_f32(&mut self, data: &[f32])[src]

pub fn count(&self) -> usize[src]

Trait Implementations

impl Drop for VertexBuffer[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.