Struct glium::uniforms::Sampler
[−]
[src]
pub struct Sampler<'t, T: 't>(pub &'t T, pub SamplerBehavior);
A sampler.
Methods
impl<'t, T: 't> Sampler<'t, T>
fn new(texture: &'t T) -> Sampler<'t, T>
Builds a new Sampler
with default parameters.
fn wrap_function(self, function: SamplerWrapFunction) -> Sampler<'t, T>
Changes the wrap functions of all three coordinates.
fn minify_filter(self, filter: MinifySamplerFilter) -> Sampler<'t, T>
Changes the minifying filter of the sampler.
fn magnify_filter(self, filter: MagnifySamplerFilter) -> Sampler<'t, T>
Changes the magnifying filter of the sampler.
fn anisotropy(self, level: u16) -> Sampler<'t, T>
Changes the magnifying filter of the sampler.