[][src]Struct azul_core::gl::Texture

pub struct Texture {
    pub texture_id: GLuint,
    pub flags: TextureFlags,
    pub size: LogicalSize,
    pub gl_context: Rc<dyn Gl>,
}

OpenGL texture, use ReadOnlyWindow::create_texture to create a texture

Fields

texture_id: GLuint

Raw OpenGL texture ID

flags: TextureFlags

Hints and flags for optimization purposes

size: LogicalSize

Size of this texture (in pixels)

gl_context: Rc<dyn Gl>

A reference-counted pointer to the OpenGL context (so that the texture can be deleted in the destructor)

Trait Implementations

impl Debug for Texture[src]

impl Display for Texture[src]

impl Drop for Texture[src]

impl Eq for Texture[src]

impl Hash for Texture[src]

impl Ord for Texture[src]

impl PartialEq<Texture> for Texture[src]

impl PartialOrd<Texture> for Texture[src]

Auto Trait Implementations

impl !RefUnwindSafe for Texture

impl !Send for Texture

impl !Sync for Texture

impl Unpin for Texture

impl !UnwindSafe for Texture

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.