Struct azul_glium::Frame

source ·
pub struct Frame { /* private fields */ }
Expand description

Implementation of Surface, targeting the default framebuffer.

The back- and front-buffers are swapped when you call finish.

You must call either finish or set_finish or else the destructor will panic.

Implementations§

Builds a new Frame. Use the draw function on Display instead of this function.

Stop drawing, swap the buffers, and consume the Frame.

See the documentation of SwapBuffersError about what is being returned.

Stop drawing, swap the buffers.

The Frame can now be dropped regularly. Calling finish() or set_finish() again will cause Err(SwapBuffersError::AlreadySwapped) to be returned.

Trait Implementations§

Executes the destructor for this type. Read more
Clears some attachments of the target.
Returns the dimensions in pixels of the target.
Returns the number of bits of each pixel of the depth buffer. Read more
Returns the number of bits of each pixel of the stencil buffer. Read more
Draws. Read more
Copies a rectangle of pixels from this surface to another surface. Read more
Blits from the default framebuffer.
Blits from a simple framebuffer.
Blits from a multi-output framebuffer.
Clears the color attachment of the target.
Clears the color attachment of the target. The color is in sRGB format.
Clears the depth attachment of the target.
Clears the stencil attachment of the target.
Clears the color and depth attachments of the target.
Clears the color and depth attachments of the target. The color is in sRGB format.
Clears the color and stencil attachments of the target.
Clears the color and stencil attachments of the target. The color is in sRGB format.
Clears the depth and stencil attachments of the target.
Clears the color, depth and stencil attachments of the target.
Clears the color, depth and stencil attachments of the target. The color is in sRGB format.
Returns true if the surface has a depth buffer available.
Returns true if the surface has a stencil buffer available.
Copies the entire surface to a target surface. See blit_color.
Copies the entire surface to the entire target. See blit_color.

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.