[−][src]Struct ugli::Texture2d
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]
&mut self,
pos: Vec2<usize>,
size: Vec2<usize>,
data: &[u8]
)
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]
ugli: &Rc<Ugli>,
size: Vec2<usize>,
f: F
) -> Self
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]
fn apply(&self, gl: &Context, info: &UniformInfo)
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,