pub struct Texture2d<P: TexturePixel> { /* private fields */ }
Implementations§
source§impl<P: TexturePixel> Texture2d<P>
impl<P: TexturePixel> Texture2d<P>
pub fn is_pot(&self) -> bool
pub fn new_uninitialized(ugli: &Ugli, size: vec2<usize>) -> Self
pub fn set_wrap_mode(&mut self, wrap_mode: WrapMode)
pub fn set_wrap_mode_separate( &mut self, wrap_mode_x: WrapMode, wrap_mode_y: WrapMode )
pub fn set_filter(&mut self, filter: Filter)
pub fn size(&self) -> vec2<usize>
pub fn sub_image(&mut self, pos: vec2<usize>, size: vec2<usize>, data: &[u8])
Trait Implementations§
source§impl<P: TexturePixel> Drop for Texture2d<P>
impl<P: TexturePixel> Drop for Texture2d<P>
source§impl<P: TexturePixel> Uniform for Texture2d<P>
impl<P: TexturePixel> Uniform for Texture2d<P>
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>where
P: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more