Trait willow::AttributeType[][src]

pub trait AttributeType: Sized + Copy + 'static {
    fn num_comps() -> usize;
fn gl_type() -> u32; }
Expand description

Types that can be used as an attribute argument type.

Required methods

Number of components in the type.

Corresponding GLenum specifying the data type of each component in the array, e.g. WebGlRenderingContext::UNSIGNED_SHORT.

Implementations on Foreign Types

Implementors