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
fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Whether this texture contain pixels with alpha value less than maximum.