pub struct OpenGlTextureFrame {
pub width: u32,
pub height: u32,
pub scale_factor: f64,
pub slot: u32,
pub texture: u32,
pub target: u32,
}Expand description
The OpenGL texture of an acquired frame.
See mln_open_gl_texture_frame in the
C API reference.
Fields§
§width: u32§height: u32§scale_factor: f64§slot: u32The texture’s index in the descriptor’s textures.
texture: u32§target: u32Trait Implementations§
Source§impl Clone for OpenGlTextureFrame
impl Clone for OpenGlTextureFrame
Source§fn clone(&self) -> OpenGlTextureFrame
fn clone(&self) -> OpenGlTextureFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OpenGlTextureFrame
Source§impl Debug for OpenGlTextureFrame
impl Debug for OpenGlTextureFrame
Source§impl Default for OpenGlTextureFrame
impl Default for OpenGlTextureFrame
Source§fn default() -> OpenGlTextureFrame
fn default() -> OpenGlTextureFrame
Returns the “default value” for a type. Read more
Source§impl PartialEq for OpenGlTextureFrame
impl PartialEq for OpenGlTextureFrame
impl StructuralPartialEq for OpenGlTextureFrame
Auto Trait Implementations§
impl Freeze for OpenGlTextureFrame
impl RefUnwindSafe for OpenGlTextureFrame
impl Send for OpenGlTextureFrame
impl Sync for OpenGlTextureFrame
impl Unpin for OpenGlTextureFrame
impl UnsafeUnpin for OpenGlTextureFrame
impl UnwindSafe for OpenGlTextureFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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