[][src]Struct glin::Program

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 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 Bindings for Program
[src]

impl PartialEq<Program> for Program
[src]

This method tests for !=.

impl Eq for Program
[src]

impl Debug for Program
[src]

Auto Trait Implementations

impl !Send for Program

impl !Sync for Program

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.