Struct three::Texture
[−]
[src]
pub struct Texture<T> { /* fields omitted */ }
An image applied (mapped) to the surface of a shape or polygon.
Methods
impl<T> Texture<T>
[src]
fn set_texel_range(&mut self, base: Point2<i16>, size: Vector2<u16>)
fn get_uv_range(&self) -> [f32; 4]
Returns normalized UV rectangle (x0, y0, x1, y1) of the current texel range.
Trait Implementations
impl<T: Clone> Clone for Texture<T>
[src]
fn clone(&self) -> Texture<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more