pub struct Texture { /* private fields */ }Expand description
A Texture representation.
Implementations§
Source§impl Texture
impl Texture
Sourcepub fn new(context: &Context, format: TextureFormat, typ: u32) -> Self
pub fn new(context: &Context, format: TextureFormat, typ: u32) -> Self
Creates a new Texture with the specified TextureFormat and the internal OpenGL typ.
Sourcepub fn format(&self) -> &TextureFormat
pub fn format(&self) -> &TextureFormat
Gets the TextureFormat.
Sourcepub fn resource(&self) -> <Context as HasContext>::Texture
pub fn resource(&self) -> <Context as HasContext>::Texture
Gets TextureResource.
Trait Implementations§
Source§impl BorrowMut<Texture> for Texture2D
impl BorrowMut<Texture> for Texture2D
Source§fn borrow_mut(&mut self) -> &mut Texture
fn borrow_mut(&mut self) -> &mut Texture
Mutably borrows from an owned value. Read more
Auto Trait Implementations§
impl Freeze for Texture
impl RefUnwindSafe for Texture
impl !Send for Texture
impl !Sync for Texture
impl Unpin for Texture
impl UnwindSafe for Texture
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