Struct smithay::backend::egl::EGLImages

source ·
pub struct EGLImages {
    pub width: u32,
    pub height: u32,
    pub y_inverted: bool,
    pub format: Format,
    /* private fields */
}
Expand description

Images of the EGL-based WlBuffer.

Fields§

§width: u32

Width in pixels

§height: u32

Height in pixels

§y_inverted: bool

If the y-axis is inverted or not

§format: Format

Format of these images

Implementations§

Amount of planes of these EGLImages

Bind plane to an OpenGL texture id

This does only temporarily modify the OpenGL state any changes are reverted before returning.

Unsafety

The given tex_id needs to be a valid GL texture otherwise undefined behavior might occur.

Trait Implementations§

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Sets value as a parameter of self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.