Trait glium::index::Index

source ·
pub unsafe trait Index: Copy + Send + 'static {
    // Required method
    fn get_type() -> IndexType;

    // Provided method
    fn is_supported<C>(caps: &C) -> bool
       where C: CapabilitiesSource + ?Sized { ... }
}
Expand description

An index from the index buffer.

Required Methods§

source

fn get_type() -> IndexType

Returns the IndexType corresponding to this type.

Provided Methods§

source

fn is_supported<C>(caps: &C) -> boolwhere C: CapabilitiesSource + ?Sized,

Returns true if this type of index is supported by the backend.

Implementations on Foreign Types§

source§

impl Index for u32

source§

impl Index for u16

source§

impl Index for u8

Implementors§