Trait glin::attributes::AttributeBufferBinding[][src]

pub trait AttributeBufferBinding {
    fn enable_for(
        &self,
        vao: &Vao,
        state: &mut State<'_>,
        capabilities: &Capabilities
    );
fn disable_for(
        &self,
        vao: &Vao,
        state: &mut State<'_>,
        capabilities: &Capabilities
    ); }

Trait to implment gl::EnableVertexAttribArray or gl::VertexArrayAttribBinding

Only implemented by a tuple of a reference to a Format and a VertexBufferBinding allows to enable and disable the different attributes in a buffer

Used internally by VAO to make an attribute read from a vertex buffer binding point

Required methods

fn enable_for(
    &self,
    vao: &Vao,
    state: &mut State<'_>,
    capabilities: &Capabilities
)
[src]

fn disable_for(
    &self,
    vao: &Vao,
    state: &mut State<'_>,
    capabilities: &Capabilities
)
[src]

Loading content...

Implementations on Foreign Types

impl<'a, B: DynVertexBufferBinding + ?Sized> AttributeBufferBinding for (&'a Format, &'a B)[src]

Loading content...

Implementors

impl<'a, B: BufferRange<IndexT> + ?Sized> AttributeBufferBinding for B[src]

Loading content...