Enum gltf_json::texture::WrappingMode
source · pub enum WrappingMode {
ClampToEdge = 1,
MirroredRepeat = 2,
Repeat = 3,
}
Expand description
Texture co-ordinate wrapping mode.
Variants§
ClampToEdge = 1
Corresponds to GL_CLAMP_TO_EDGE
.
MirroredRepeat = 2
Corresponds to GL_MIRRORED_REPEAT
.
Repeat = 3
Corresponds to GL_REPEAT
.
Implementations§
source§impl WrappingMode
impl WrappingMode
sourcepub fn as_gl_enum(&self) -> u32
pub fn as_gl_enum(&self) -> u32
Returns the corresponding OpenGL enum value.
Trait Implementations§
source§impl Clone for WrappingMode
impl Clone for WrappingMode
source§fn clone(&self) -> WrappingMode
fn clone(&self) -> WrappingMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WrappingMode
impl Debug for WrappingMode
source§impl Default for WrappingMode
impl Default for WrappingMode
source§impl<'de> Deserialize<'de> for WrappingMode
impl<'de> Deserialize<'de> for WrappingMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for WrappingMode
impl PartialEq for WrappingMode
source§fn eq(&self, other: &WrappingMode) -> bool
fn eq(&self, other: &WrappingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WrappingMode
impl Serialize for WrappingMode
impl Copy for WrappingMode
impl Eq for WrappingMode
impl StructuralEq for WrappingMode
impl StructuralPartialEq for WrappingMode
Auto Trait Implementations§
impl RefUnwindSafe for WrappingMode
impl Send for WrappingMode
impl Sync for WrappingMode
impl Unpin for WrappingMode
impl UnwindSafe for WrappingMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more