Enum gltf::texture::WrappingMode [−][src]
pub enum WrappingMode { ClampToEdge, MirroredRepeat, Repeat, }
Texture co-ordinate wrapping mode.
Variants
ClampToEdge
Corresponds to GL_CLAMP_TO_EDGE
.
MirroredRepeat
Corresponds to GL_MIRRORED_REPEAT
.
Repeat
Corresponds to GL_REPEAT
.
Methods
impl WrappingMode
[src]
impl WrappingMode
pub fn as_gl_enum(&self) -> u32
[src]
pub fn as_gl_enum(&self) -> u32
Returns the corresponding OpenGL enum value.
Trait Implementations
impl Clone for WrappingMode
[src]
impl Clone for WrappingMode
fn clone(&self) -> WrappingMode
[src]
fn clone(&self) -> WrappingMode
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 Default for WrappingMode
[src]
impl Default for WrappingMode
fn default() -> WrappingMode
[src]
fn default() -> WrappingMode
Returns the "default value" for a type. Read more
impl Debug for WrappingMode
[src]
impl Debug for WrappingMode
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 WrappingMode
[src]
impl Copy for WrappingMode
impl Eq for WrappingMode
[src]
impl Eq for WrappingMode
impl PartialEq<WrappingMode> for WrappingMode
[src]
impl PartialEq<WrappingMode> for WrappingMode
fn eq(&self, other: &WrappingMode) -> bool
[src]
fn eq(&self, other: &WrappingMode) -> 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 WrappingMode
[src]
impl<'de> Deserialize<'de> for WrappingMode
fn deserialize<__D>(
__deserializer: __D
) -> Result<WrappingMode, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<WrappingMode, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for WrappingMode
[src]
impl Serialize for WrappingMode
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
Auto Trait Implementations
impl Send for WrappingMode
impl Send for WrappingMode
impl Sync for WrappingMode
impl Sync for WrappingMode