pub struct Texture2D(_);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 PartialEq<Texture2D> for Texture2D
impl PartialEq<Texture2D> for Texture2D
source§impl PartialOrd<Texture2D> for Texture2D
impl PartialOrd<Texture2D> for Texture2D
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Texture2D
impl StructuralEq for Texture2D
impl StructuralPartialEq for Texture2D
Auto Trait Implementations§
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