[−]Struct geng::prelude::ugli::Texture2d
Implementations
impl<P> Texture2d<P> where
P: TexturePixel,
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]
)
&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>,
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>>
ugli: &Rc<Ugli>,
image: ImageBuffer<Rgba<u8>, Vec<u8>>
) -> Texture2d<Color<f32>>
Trait Implementations
impl<P> Drop for Texture2d<P> where
P: TexturePixel,
P: TexturePixel,
fn drop(&mut self)
impl LoadAsset for Texture2d<Color<f32>>
[src]
fn load(
geng: &Rc<Geng>,
path: &str
) -> Pin<Box<dyn Future<Output = Result<Texture2d<Color<f32>>, Error>> + 'static>>ⓘ
[src]
geng: &Rc<Geng>,
path: &str
) -> Pin<Box<dyn Future<Output = Result<Texture2d<Color<f32>>, Error>> + 'static>>ⓘ
fn default_ext() -> Option<&'static str>
[src]
impl<P> Uniform for Texture2d<P> where
P: TexturePixel,
P: TexturePixel,
fn apply(&self, gl: &Context, info: &UniformInfo)
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow(&self) -> &TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Uniform for T where
T: AsUniform,
T: AsUniform,
fn apply(&self, gl: &Context, info: &UniformInfo)
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,