Struct glitter::program::ProgramAttrib [] [src]

pub struct ProgramAttrib {
    pub gl_index: GLuint,
}

An OpenGL generic vertex attribute.

This type is used for getting and setting up the vertex attributes of a program, which describes how a program should treat the raw data that is rendered with a draw call such as gl.draw_arrays_range.

See also

gl.get_attrib_location: Get a ProgramAttrib from an attribute's name within a program.

Fields

gl_index: GLuint

The index of the program attribute.

Trait Implementations

impl Copy for ProgramAttrib
[src]

impl Clone for ProgramAttrib
[src]

fn clone(&self) -> ProgramAttrib

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for ProgramAttrib
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.