Struct gbm::Surface

source ·
pub struct Surface<T: 'static> { /* private fields */ }
Expand description

A gbm rendering surface

Implementations§

Return whether or not a surface has free (non-locked) buffers

Before starting a new frame, the surface must have a buffer available for rendering. Initially, a gbm surface will have a free buffer, but after one or more buffers have been locked, the application must check for a free buffer before rendering.

Lock the surface’s current front buffer

Locks rendering to the surface’s current front buffer and returns a handle to the underlying BufferObject

If an error occurs a FrontBufferError is returned.

Unsafety: This function must be called exactly once after calling eglSwapBuffers. Calling it before any eglSwapBuffer has happened on the surface or two or more times after eglSwapBuffers is an error and may cause undefined behavior.

Trait Implementations§

Receive a raw pointer representing this type.
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 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.