pub struct Texture2D(/* private fields */);Implementations§
Source§impl Texture2D
impl Texture2D
pub fn new() -> Result<Self, String>
pub fn data( &self, level: i32, format: PixelFormat, size: (i32, i32), data_type: PixelDataType, data: Vec<u8>, )
pub fn subdata( &self, level: i32, offset: (i32, i32), size: (i32, i32), format: PixelFormat, data_type: PixelDataType, data: Vec<u8>, )
Trait Implementations§
Source§impl GlTexture for Texture2D
impl GlTexture for Texture2D
type Size = (i32, i32)
fn data( &self, level: i32, format: PixelFormat, size: Self::Size, data_type: PixelDataType, data: Vec<u8>, )
fn set_min_filter(&self, filter: TexFilter)
fn set_mag_filter(&self, filter: TexFilter)
fn set_wrap_s(&self, wrap: TexWrap)
fn set_wrap_t(&self, wrap: TexWrap)
fn set_wrap_r(&self, wrap: TexWrap)
Source§impl Ord for Texture2D
impl Ord for Texture2D
Source§impl PartialOrd for Texture2D
impl PartialOrd for Texture2D
impl Eq for Texture2D
impl StructuralPartialEq for Texture2D
Auto Trait Implementations§
impl Freeze for Texture2D
impl RefUnwindSafe for Texture2D
impl Send for Texture2D
impl Sync for Texture2D
impl Unpin for Texture2D
impl UnwindSafe for Texture2D
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