pub struct BorrowedGlesTexture {
pub texture_id: u32,
pub framebuffer_id: u32,
pub texture: Texture,
pub framebuffer: Framebuffer,
pub width: u32,
pub height: u32,
pub premultiplied: bool,
pub y_inverted: bool,
}Expand description
Borrowed view of the texture backing a GlesCanvas.
The texture and framebuffer remain owned by ltk. Consumers may sample the texture while the canvas is alive, but must not delete or take ownership of the GL names. A resize can replace both names, so callers should query this after rendering/resizing, not cache it indefinitely.
Fields§
§texture_id: u32Native GL texture name for the canvas color attachment.
framebuffer_id: u32Native GL framebuffer name that owns texture_id as color attachment 0.
texture: TextureGlow texture handle for callers already using glow.
framebuffer: FramebufferGlow framebuffer handle for callers already using glow.
width: u32Texture width in physical pixels.
height: u32Texture height in physical pixels.
premultiplied: boolThe texture contains RGBA pixels with premultiplied alpha.
y_inverted: boolWhether consumers should treat the texture as vertically inverted.
Trait Implementations§
Source§impl Clone for BorrowedGlesTexture
impl Clone for BorrowedGlesTexture
Source§fn clone(&self) -> BorrowedGlesTexture
fn clone(&self) -> BorrowedGlesTexture
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BorrowedGlesTexture
impl Debug for BorrowedGlesTexture
impl Copy for BorrowedGlesTexture
Auto Trait Implementations§
impl Freeze for BorrowedGlesTexture
impl RefUnwindSafe for BorrowedGlesTexture
impl Send for BorrowedGlesTexture
impl Sync for BorrowedGlesTexture
impl Unpin for BorrowedGlesTexture
impl UnwindSafe for BorrowedGlesTexture
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more