[]Struct geng::prelude::ugli::Texture2d

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

Implementations

impl<P> Texture2d<P> where
    P: TexturePixel

pub fn is_pot(&self) -> bool

pub fn new_uninitialized(ugli: &Rc<Ugli>, size: Vec2<usize>) -> Texture2d<P>

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

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

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

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

impl Texture2d<Color<f32>>

pub fn gen_mipmaps(&mut self)

pub fn new_with<F>(
    ugli: &Rc<Ugli>,
    size: Vec2<usize>,
    f: F
) -> Texture2d<Color<f32>> where
    F: FnMut(Vec2<usize>) -> Color<f32>, 

pub fn from_image(
    ugli: &Rc<Ugli>,
    image: ImageBuffer<Rgba<u8>, Vec<u8>>
) -> Texture2d<Color<f32>>

Trait Implementations

impl<P> Drop for Texture2d<P> where
    P: TexturePixel

impl LoadAsset for Texture2d<Color<f32>>[src]

impl<P> Uniform for Texture2d<P> where
    P: TexturePixel

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> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

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<T> Uniform for T where
    T: AsUniform

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