[][src]Struct ugli::Texture2d

pub struct Texture2d<P: TexturePixel> { /* fields omitted */ }

Implementations

impl<P: TexturePixel> Texture2d<P>[src]

pub fn is_pot(&self) -> bool[src]

pub fn new_uninitialized(ugli: &Rc<Ugli>, size: Vec2<usize>) -> Self[src]

pub fn set_wrap_mode(&mut self, wrap_mode: WrapMode)[src]

pub fn set_filter(&mut self, filter: Filter)[src]

pub fn size(&self) -> Vec2<usize>[src]

pub unsafe fn sub_image(
    &mut self,
    pos: Vec2<usize>,
    size: Vec2<usize>,
    data: &[u8]
)
[src]

impl Texture2d<Color<f32>>[src]

pub fn gen_mipmaps(&mut self)[src]

pub fn new_with<F: FnMut(Vec2<usize>) -> Color<f32>>(
    ugli: &Rc<Ugli>,
    size: Vec2<usize>,
    f: F
) -> Self
[src]

pub fn from_image(ugli: &Rc<Ugli>, image: RgbaImage) -> Self[src]

Trait Implementations

impl<P: TexturePixel> Drop for Texture2d<P>[src]

impl<P: TexturePixel> Uniform for Texture2d<P>[src]

Auto Trait Implementations

impl<P> !RefUnwindSafe for Texture2d<P>

impl<P> !Send for Texture2d<P>

impl<P> !Sync for Texture2d<P>

impl<P> Unpin for Texture2d<P>

impl<P> !UnwindSafe for Texture2d<P>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,