Struct nannou::ui::backend::glium::glium::texture::TextureAny[][src]

pub struct TextureAny { /* fields omitted */ }

A texture whose type isn't fixed at compile-time.

Methods

impl TextureAny
[src]

Returns the width of the texture.

Returns the height of the texture.

Returns the depth of the texture.

Returns the kind of texture.

Returns the dimensions of the texture.

Returns the array size of the texture.

Returns the number of samples of the texture if it is a multisampling texture.

Returns a structure that represents the first layer of the texture. All textures have a first layer.

Returns a structure that represents a specific layer of the texture.

Non-array textures have only one layer. The number of layers can be queried with get_array_size.

Returns None if out of range.

Returns the type of the texture (1D, 2D, 3D, etc.).

Determines the internal format of this texture.

Returns the number of mipmap levels of the texture.

Returns a structure that represents the main mipmap level of the texture.

Returns a structure that represents a specific mipmap of the texture.

Returns None if out of range.

Binds this texture and generates mipmaps.

Trait Implementations

impl Debug for TextureAny
[src]

Formats the value using the given formatter. Read more

impl GlObject for TextureAny
[src]

The type of identifier for this object.

Returns the id of the object.

impl Drop for TextureAny
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for TextureAny

impl !Sync for TextureAny