#[non_exhaustive]#[repr(u8)]pub enum BorrowedOpenGLTextureOrigin {
TopLeft = 0,
BottomLeft = 1,
}
Expand description
This enum describes the origin to use when rendering a borrowed OpenGL texture.
Use this with BorrowedOpenGLTextureBuilder::origin
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TopLeft = 0
The top-left of the texture is the top-left of the texture drawn on the screen.
BottomLeft = 1
The bottom-left of the texture is the top-left of the texture draw on the screen, flipping it vertically.
Trait Implementations§
Source§impl Clone for BorrowedOpenGLTextureOrigin
impl Clone for BorrowedOpenGLTextureOrigin
Source§fn clone(&self) -> BorrowedOpenGLTextureOrigin
fn clone(&self) -> BorrowedOpenGLTextureOrigin
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BorrowedOpenGLTextureOrigin
impl Debug for BorrowedOpenGLTextureOrigin
Source§impl Default for BorrowedOpenGLTextureOrigin
impl Default for BorrowedOpenGLTextureOrigin
Source§fn default() -> BorrowedOpenGLTextureOrigin
fn default() -> BorrowedOpenGLTextureOrigin
Returns the “default value” for a type. Read more
impl Copy for BorrowedOpenGLTextureOrigin
impl StructuralPartialEq for BorrowedOpenGLTextureOrigin
Auto Trait Implementations§
impl Freeze for BorrowedOpenGLTextureOrigin
impl RefUnwindSafe for BorrowedOpenGLTextureOrigin
impl Send for BorrowedOpenGLTextureOrigin
impl Sync for BorrowedOpenGLTextureOrigin
impl Unpin for BorrowedOpenGLTextureOrigin
impl UnwindSafe for BorrowedOpenGLTextureOrigin
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