Trait three_d::core::texture::Texture[][src]

pub trait Texture {
    fn bind(&self, location: u32);
fn width(&self) -> u32;
fn height(&self) -> u32;
fn format(&self) -> Format;
fn is_transparent(&self) -> bool; }
Expand description

A texture that can be sampled in a fragment shader (see use_texture).

Required methods

Binds this texture to the current shader program.

The width of this texture.

The height of this texture.

The format of this texture.

Whether this texture contain pixels with alpha value less than maximum.

Implementors