Trait gfx::IntoIndexBuffer[][src]

pub trait IntoIndexBuffer<R: Resources> {
    fn into_index_buffer<F: Factory<R> + ?Sized>(
        self,
        factory: &mut F
    ) -> IndexBuffer<R>; }

A helper trait to create IndexBuffers from different kinds of data.

Required methods

fn into_index_buffer<F: Factory<R> + ?Sized>(
    self,
    factory: &mut F
) -> IndexBuffer<R>
[src]

Turns self into an IndexBuffer.

Loading content...

Implementations on Foreign Types

impl<R: Resources> IntoIndexBuffer<R> for ()[src]

impl<'s, R: Resources> IntoIndexBuffer<R> for &'s [u16][src]

impl<'s, R: Resources> IntoIndexBuffer<R> for &'s [u32][src]

Loading content...

Implementors

impl<R: Resources> IntoIndexBuffer<R> for IndexBuffer<R>[src]

impl<R: Resources> IntoIndexBuffer<R> for Buffer<R, u16>[src]

impl<R: Resources> IntoIndexBuffer<R> for Buffer<R, u32>[src]

Loading content...