pub struct AttributeLink<VertexArrayObjectId: Id, BufferId: Id, AttributeId: Id + IdName> { /* private fields */ }Implementations§
Source§impl<VertexArrayObjectId: Id, BufferId: Id, AttributeId: Id + IdName> AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId: Id, BufferId: Id, AttributeId: Id + IdName> AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
pub fn new( vao_ids: impl Into<Bridge<VertexArrayObjectId>>, buffer_id: BufferId, attribute_id: AttributeId, attribute_create_callback: impl Into<AttributeCreateCallback>, ) -> Self
pub fn vao_ids(&self) -> &[VertexArrayObjectId]
pub fn buffer_id(&self) -> &BufferId
pub fn attribute_id(&self) -> &AttributeId
pub fn create_callback(&self) -> AttributeCreateCallback
Sourcepub fn create_attribute(
&self,
gl: WebGl2RenderingContext,
now: f64,
webgl_buffer: WebGlBuffer,
attribute_location: AttributeLocation,
)
pub fn create_attribute( &self, gl: WebGl2RenderingContext, now: f64, webgl_buffer: WebGlBuffer, attribute_location: AttributeLocation, )
Runs the associated attribute_create_callback to initialize the attribute
Trait Implementations§
Source§impl<VertexArrayObjectId: Clone + Id, BufferId: Clone + Id, AttributeId: Clone + Id + IdName> Clone for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId: Clone + Id, BufferId: Clone + Id, AttributeId: Clone + Id + IdName> Clone for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
Source§fn clone(&self) -> AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
fn clone(&self) -> AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<VertexArrayObjectId: Id, BufferId: Id, AttributeId: Id + IdName> Debug for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId: Id, BufferId: Id, AttributeId: Id + IdName> Debug for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
Source§impl<VertexArrayObjectId: Id, BufferId: Id, AttributeId: Id + IdName> Hash for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId: Id, BufferId: Id, AttributeId: Id + IdName> Hash for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
Source§impl<VertexArrayObjectId: Id, BufferId: Id, AttributeId: Id + IdName> PartialEq for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId: Id, BufferId: Id, AttributeId: Id + IdName> PartialEq for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId: Id, BufferId: Id, AttributeId: Id + IdName> Eq for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
Auto Trait Implementations§
impl<VertexArrayObjectId, BufferId, AttributeId> Freeze for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId, BufferId, AttributeId> !RefUnwindSafe for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId, BufferId, AttributeId> !Send for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId, BufferId, AttributeId> !Sync for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId, BufferId, AttributeId> Unpin for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
impl<VertexArrayObjectId, BufferId, AttributeId> !UnwindSafe for AttributeLink<VertexArrayObjectId, BufferId, AttributeId>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more