Enum gltf::texture::MagFilter [−][src]
pub enum MagFilter { Nearest, Linear, }
Magnification filter.
Variants
Nearest
Corresponds to GL_NEAREST
.
Linear
Corresponds to GL_LINEAR
.
Methods
impl MagFilter
[src]
impl MagFilter
pub fn as_gl_enum(&self) -> u32
[src]
pub fn as_gl_enum(&self) -> u32
OpenGL enum
Trait Implementations
impl Clone for MagFilter
[src]
impl Clone for MagFilter
fn clone(&self) -> MagFilter
[src]
fn clone(&self) -> MagFilter
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for MagFilter
[src]
impl Debug for MagFilter
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for MagFilter
[src]
impl Copy for MagFilter
impl Eq for MagFilter
[src]
impl Eq for MagFilter
impl PartialEq<MagFilter> for MagFilter
[src]
impl PartialEq<MagFilter> for MagFilter
fn eq(&self, other: &MagFilter) -> bool
[src]
fn eq(&self, other: &MagFilter) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl<'de> Deserialize<'de> for MagFilter
[src]
impl<'de> Deserialize<'de> for MagFilter
fn deserialize<__D>(
__deserializer: __D
) -> Result<MagFilter, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<MagFilter, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for MagFilter
[src]
impl Serialize for MagFilter
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more