Enum glitter::texture::TextureWrapMode
[−]
[src]
pub enum TextureWrapMode { ClampToEdge, MirroredRepeat, Repeat, }
The wrapping modes when drawing a texture.
Variants
ClampToEdge
Wrap a texture by clamping it within the range [1/2x, 1 - 1/2x]
,
where x
is the dimension of the texture being clamped.
MirroredRepeat
Wrap a texture by repeating it front-to-back, then back-to-front, then repeating.
Repeat
Wrap a texture by repeating it over and over again.
Methods
impl TextureWrapMode
[src]
fn from_gl(gl_enum: GLenum) -> Result<Self, ()>
Convert from a raw OpenGL integer value to an enum variant. Returns an error if the value is not a valid enum variant.
fn gl_enum(&self) -> GLenum
Return the OpenGL integer value for a given enum variant.
Trait Implementations
impl Debug for TextureWrapMode
[src]
impl Clone for TextureWrapMode
[src]
fn clone(&self) -> TextureWrapMode
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
impl Copy for TextureWrapMode
[src]
impl PartialEq for TextureWrapMode
[src]
fn eq(&self, __arg_0: &TextureWrapMode) -> 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
This method tests for !=
.