Trait rin_gl::traits::ToSimpleVao[][src]

pub trait ToSimpleVao<T, U> {
    fn to_simple_vao<C, B>(
        &self,
        gl: &C,
        bindings: &B,
        usage: GLenum
    ) -> Result<SimpleVao<T>>
    where
        C: CreationContext,
        B: Bindings
;
fn as_simple_vao_data(&self) -> Data<'_, T>; }

Required methods

fn to_simple_vao<C, B>(
    &self,
    gl: &C,
    bindings: &B,
    usage: GLenum
) -> Result<SimpleVao<T>> where
    C: CreationContext,
    B: Bindings
[src]

fn as_simple_vao_data(&self) -> Data<'_, T>[src]

Loading content...

Implementations on Foreign Types

impl<T: VertexFormat + Clone + 'static> ToSimpleVao<T, Mesh<T>> for Mesh<T>[src]

impl ToSimpleVao<Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>, Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>> for Mesh<Vec2>[src]

impl ToSimpleVao<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>, Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>> for Mesh<Vec3>[src]

impl<'a, T: VertexFormat + Clone + 'static> ToSimpleVao<T, MeshSlice<'a, T>> for MeshSlice<'a, T>[src]

impl<'a> ToSimpleVao<Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>, Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>> for MeshSlice<'a, Vec2>[src]

impl<'a> ToSimpleVao<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>, Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>> for MeshSlice<'a, Vec3>[src]

impl<'a, T: VertexFormat + Clone + 'static> ToSimpleVao<T, (&'a [T], PrimitiveType)> for (&'a [T], PrimitiveType)[src]

impl<'a, T: VertexFormat + Clone + 'static> ToSimpleVao<T, (&'a [T], &'a [u32], PrimitiveType)> for (&'a [T], &'a [IndexT], PrimitiveType)[src]

Loading content...

Implementors

Loading content...