Enum glitter::texture::TextureWrapMode [] [src]

pub enum TextureWrapMode {
    ClampToEdge,
    MirroredRepeat,
    Repeat,
}

The wrapping modes when drawing a texture.

Variants

Wrap a texture by clamping it within the range [1/2x, 1 - 1/2x], where x is the dimension of the texture being clamped.

Wrap a texture by repeating it front-to-back, then back-to-front, then repeating.

Wrap a texture by repeating it over and over again.

Methods

impl TextureWrapMode
[src]

[src]

Convert from a raw OpenGL integer value to an enum variant. Returns an error if the value is not a valid enum variant.

[src]

Return the OpenGL integer value for a given enum variant.

Trait Implementations

impl Debug for TextureWrapMode
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for TextureWrapMode
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for TextureWrapMode
[src]

impl PartialEq for TextureWrapMode
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for TextureWrapMode
[src]

impl Hash for TextureWrapMode
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more