Trait three_d::Texture [−][src]
pub trait Texture { fn bind(&self, location: u32); fn width(&self) -> usize; fn height(&self) -> usize; }
Expand description
A texture that can be sampled in a fragment shader (see use_texture).
Required methods
fn bind(&self, location: u32)
[src]
Expand description
Binds this texture to the current shader program.
fn width(&self) -> usize
[src]
Expand description
The width of this texture.
fn height(&self) -> usize
[src]
Expand description
The height of this texture.