pub struct IndexBuffer<G>where
G: Gl,{
pub count: u32,
pub ele_type: BufferElementType,
/* private fields */
}
Expand description
A subset of a data buffer for use with OpenGL index data.
An IndexBuffer directly owns the OpenGL buffer which is an ElementArray rather than vertex data
Fields§
§count: u32
Number of indices in the buffer
ele_type: BufferElementType
The type of each element
Implementations§
Trait Implementations§
Source§impl<G> Clone for IndexBuffer<G>where
G: Gl,
impl<G> Clone for IndexBuffer<G>where
G: Gl,
Source§impl<G> Debug for IndexBuffer<G>
impl<G> Debug for IndexBuffer<G>
Source§impl<G> Default for IndexBuffer<G>where
G: Gl,
impl<G> Default for IndexBuffer<G>where
G: Gl,
Source§impl<G> Display for IndexBuffer<G>where
G: Gl,
impl<G> Display for IndexBuffer<G>where
G: Gl,
impl<G> DefaultIndentedDisplay for IndexBuffer<G>where
G: Gl,
Auto Trait Implementations§
impl<G> Freeze for IndexBuffer<G>
impl<G> RefUnwindSafe for IndexBuffer<G>
impl<G> Send for IndexBuffer<G>
impl<G> Sync for IndexBuffer<G>
impl<G> Unpin for IndexBuffer<G>
impl<G> UnwindSafe for IndexBuffer<G>
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