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

The index of the program attribute.

Trait Implementations

impl Debug for ProgramAttrib
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for ProgramAttrib
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ProgramAttrib
[src]