pub struct EGLContext<B: Backend, N: NativeDisplay<B>> { /* private fields */ }
Expand description

EGL context for rendering

Implementations§

Create a new EGLContext from a given NativeDisplay

Creates a surface for rendering

Returns the address of an OpenGL function.

Supposes that the context has been made current before this function is called.

Returns true if the OpenGL context is the current one in the thread.

Returns the pixel format of the main framebuffer of the context.

Borrow the underlying native display.

This follows the same semantics as std::cell:RefCell. Multiple read-only borrows are possible. Borrowing the backend while there is a mutable reference will panic.

Borrow the underlying native display mutably.

This follows the same semantics as std::cell:RefCell. Holding any other borrow while trying to borrow the backend mutably will panic. Note that EGL will borrow the display mutably during surface creation.

Trait Implementations§

Executes the destructor for this type. Read more
Binds this EGL context to the given Wayland display. 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.