Trait luminance::backend::framebuffer::FramebufferBackBuffer[][src]

pub unsafe trait FramebufferBackBuffer: Framebuffer<Dim2> {
    unsafe fn back_buffer(
        &mut self,
        size: <Dim2 as Dimensionable>::Size
    ) -> Result<Self::FramebufferRepr, FramebufferError>; }
Expand description

Back buffer.

A back buffer is a special kind of Framebuffer. It’s a 2D (c.f. Dim2) framebuffer that is provided exclusively by the backend. Even though it should be cached by the application, its method is — most of the time — cheap to call, so it can be called in a render loop.

Required methods

Get the back buffer from the backend.

The size argument should match the current size of the actual system framebuffer. Because this value depends on the system platform, it is not possible to compute it directly.

Implementors