[][src]Struct wavefront::Buffers

pub struct Buffers { /* fields omitted */ }

Implementations

impl Buffers[src]

pub fn positions(&self) -> &[[f32; 3]][src]

Returns a reference to the position attributes contained within this Obj.

pub fn uvs(&self) -> &[[f32; 3]][src]

Returns a reference to the texture coordinate attributes contained within this Obj.

pub fn normals(&self) -> &[[f32; 3]][src]

Returns a reference to the normal attributes contained within this Obj.

pub fn add_position(&mut self, position: [f32; 3]) -> usize[src]

Add a new position attribute to this Obj, returning its index.

pub fn add_uv(&mut self, uv: [f32; 3]) -> usize[src]

Add a new texture coordinate attribute to this Obj, returning its index.

pub fn add_normal(&mut self, normal: [f32; 3]) -> usize[src]

Add a new normal attribute to this Obj, returning its index.

Trait Implementations

impl Clone for Buffers[src]

impl Default for Buffers[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.