Struct radiant_rs::Program [] [src]

pub struct Program { /* fields omitted */ }

A shader program and its uniforms.

Cloning a program creates a new program, referencing the internal shaders of the source program but using its own copy of the uniforms.

Methods

impl Program
[src]

Creates a program from a fragment shader file.

Creates a program from a fragment shader string.

Sets a uniform value by name.

Removes a uniform value by name.

Trait Implementations

impl Clone for Program
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more