Struct glitter::program::ProgramUniform
[−]
[src]
pub struct ProgramUniform { pub gl_index: GLuint, }
An OpenGL program uniform.
This type is used for getting and setting a program's uniform variables, which are constants used during a single draw call, but can be changed between draw calls.
See also
gl.get_uniform_location
:
Get a ProgramUnfirom
from a uniform's name within a program.
gl.set_uniform
:
Set or change the value of a program's uniform.
Fields
gl_index: GLuint
The index of the the program uniform.
Trait Implementations
impl Debug for ProgramUniform
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ProgramUniform
[src]
fn clone(&self) -> ProgramUniform
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more