Struct glium::texture::TextureHandle [] [src]

pub struct TextureHandle<'a> {
    // some fields omitted
}

Handle to a texture.

Methods

impl<'a> TextureHandle<'a>

fn new(texture: &'a ResidentTexture, _: &SamplerBehavior) -> TextureHandle<'a>

Builds a new handle.

fn set(&mut self, texture: &'a ResidentTexture, _: &SamplerBehavior)

Sets the value to the given texture.

Trait Implementations

impl<'a> AsUniformValue for TextureHandle<'a>

fn as_uniform_value(&self) -> UniformValue

impl<'a> UniformBlock for TextureHandle<'a>

fn matches(layout: &BlockLayout, base_offset: usize) -> Result<(), LayoutMismatchError>

fn build_layout(base_offset: usize) -> BlockLayout

Derived Implementations

impl<'a> Clone for TextureHandle<'a>

fn clone(&self) -> TextureHandle<'a>

fn clone_from(&mut self, source: &Self)

impl<'a> Copy for TextureHandle<'a>