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]
&self,
vao: &Vao,
state: &mut State<'_>,
capabilities: &Capabilities
)
fn disable_for(
&self,
vao: &Vao,
state: &mut State<'_>,
capabilities: &Capabilities
)
[src]
&self,
vao: &Vao,
state: &mut State<'_>,
capabilities: &Capabilities
)
Implementations on Foreign Types
impl<'a, B: DynVertexBufferBinding + ?Sized> AttributeBufferBinding for (&'a Format, &'a B)
[src]
impl<'a, B: DynVertexBufferBinding + ?Sized> AttributeBufferBinding for (&'a Format, &'a B)
[src]fn enable_for(&self, vao: &Vao, gl: &mut State<'_>, capabilities: &Capabilities)
[src]
fn disable_for(
&self,
vao: &Vao,
gl: &mut State<'_>,
capabilities: &Capabilities
)
[src]
&self,
vao: &Vao,
gl: &mut State<'_>,
capabilities: &Capabilities
)
Implementors
impl<'a, B: BufferRange<IndexT> + ?Sized> AttributeBufferBinding for B
[src]
impl<'a, B: BufferRange<IndexT> + ?Sized> AttributeBufferBinding for B
[src]fn enable_for(&self, vao: &Vao, gl: &mut State<'_>, capabilities: &Capabilities)
[src]
fn disable_for(
&self,
vao: &Vao,
gl: &mut State<'_>,
capabilities: &Capabilities
)
[src]
&self,
vao: &Vao,
gl: &mut State<'_>,
capabilities: &Capabilities
)