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

Turns self into an IndexBuffer.

Implementations on Foreign Types

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

[src]

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

[src]

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

[src]

Implementors