Struct glin::Program[][src]

pub struct Program { /* fields omitted */ }

A wrapper for a glsl program

Methods

impl Program
[src]

GL id

Some drivers reuse program names when deleted This returns a unique id for this context for every program created during the application lifetime

Bind fragment output data, Returns an attribute location if it exists

Returns an uniform location if it exists

Returns an uniform location if it exists

Returns the attribute bindings for this program

As a HashMap where the key is the attribute name and the value it's location

Sets a float uniform

Sets a vec2 uniform

Sets a vec3 uniform

Sets a vec4 uniform

Sets a vec4 uniform

Sets an int uniform

Sets a ivec2 uniform

Sets a ivec3 uniform

Sets a ivec4 uniform

Sets a mat4 uniform

Sets a texture uniform

Sets a uniform value from a UniformValue

Sets a uniform value from a Uniform

Sets a group of uniforms values from a slice of Uniform

Sets a uniform array position

Trait Implementations

impl Debug for Program
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Program
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Program
[src]

impl Bindings for Program
[src]

Location of the specified attribute in a program

Index of the locations for all the attributes in a program

Auto Trait Implementations

impl !Send for Program

impl !Sync for Program