Enum glitter::texture::TextureBindingTarget [] [src]

pub enum TextureBindingTarget {
    Texture2d,
    TextureCubeMap,
}

Represents all of the possible types of OpenGL textures.

Variants

A 2-dimensional texture, which can be thought of as a 2D grid of colors.

A cubemap texture, which is a texture made up of six 2-dimensional images, each of which represent a face of a cube. This type of texture is especially useful for skyboxes.

Methods

impl TextureBindingTarget
[src]

[src]

Convert a TextureBindingTarget into a raw OpenGL enum value.

Trait Implementations

impl Debug for TextureBindingTarget
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for TextureBindingTarget
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for TextureBindingTarget
[src]

impl PartialEq for TextureBindingTarget
[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 TextureBindingTarget
[src]

impl From<VariantTexture2d> for TextureBindingTarget
[src]

[src]

Performs the conversion.