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