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]
pub fn set_texel_range(&mut self, base: Point2<i16>, size: Vector2<u16>)
[src]
pub fn uv_range(&self) -> [f32; 4]
[src]
Returns normalized UV rectangle (x0, y0, x1, y1) of the current texel range.
Trait Implementations
impl<T> Clone for Texture<T> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> Debug for Texture<T> where
T: Debug,
[src]
T: Debug,
fn fmt(&self, __f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> Eq for Texture<T> where
T: PartialEq,
[src]
T: PartialEq,
impl<T> Hash for Texture<T>
[src]
fn hash<__HT>(&self, __state: &mut __HT) where
__HT: Hasher,
[src]
__HT: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T> PartialEq for Texture<T> where
T: PartialEq,
[src]
T: PartialEq,