Struct gltf::texture::Sampler
[−]
[src]
pub struct Sampler<'a> { /* fields omitted */ }
Texture sampler properties for filtering and wrapping modes.
Methods
impl<'a> Sampler<'a>
[src]
fn default(gltf: &'a Gltf) -> Self
Constructs the default Sampler
.
fn index(&self) -> Option<usize>
Returns the internal JSON index if this Sampler
was explicity defined.
This function returns None
if the Sampler
is the default sampler.
fn as_json(&self) -> &Sampler
Returns the internal JSON item.
fn mag_filter(&self) -> Option<MagFilter>
Magnification filter.
fn min_filter(&self) -> Option<MinFilter>
Minification filter.
fn wrap_s(&self) -> WrappingMode
s
wrapping mode.
fn wrap_t(&self) -> WrappingMode
t
wrapping mode.
fn extras(&self) -> &Extras
Optional application specific data.
Trait Implementations
impl<'a> Clone for Sampler<'a>
[src]
fn clone(&self) -> Sampler<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more