[−][src]Struct wavefront::Buffers
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
Auto Trait Implementations
impl RefUnwindSafe for Buffers
[src]
impl Send for Buffers
[src]
impl Sync for Buffers
[src]
impl Unpin for Buffers
[src]
impl UnwindSafe for Buffers
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,