Trait rin::gl::attributes::AttributeBufferBinding[][src]

pub trait AttributeBufferBinding {
    pub fn enable_for(
        &self,
        vao: &Vao,
        state: &mut State<'_>,
        capabilities: &Capabilities
    );
pub 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

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

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

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

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

Loading content...