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.

Loading content...

Implementors

impl Texture for DepthTargetTexture2D[src]

fn bind(&self, location: u32)[src]

fn width(&self) -> usize[src]

fn height(&self) -> usize[src]

impl Texture for Texture2D[src]

fn bind(&self, location: u32)[src]

fn width(&self) -> usize[src]

fn height(&self) -> usize[src]

impl<T: TextureValueType> Texture for ColorTargetTexture2D<T>[src]

fn bind(&self, location: u32)[src]

fn width(&self) -> usize[src]

fn height(&self) -> usize[src]

Loading content...