Struct glitter::program::Program [] [src]

pub struct Program { /* fields omitted */ }

An OpenGL program object.

A program is used in OpenGL to customize the render pipeline. A program is composed of multiple Shader objects, each of which computes one step in the render pipeline, and feed data to the next program.

A program will automatically be deleted after going out of scope.

See also

gl.build_shader: Build and link a new program object

gl.create_program: Create a new, empty program object.

gl.use_program: Bind a program to use for drawing calls, returning a ProgramBinding type.

Trait Implementations

impl Drop for Program
[src]

[src]

Executes the destructor for this type. Read more

impl GLObject for Program
[src]

The type of the object's internal ID.

[src]

Get a new object from an OpenGL ID. Read more

[src]

Get the object's ID.

[src]

Consume the object without cleaning up its resources, returning the object's ID. Read more