Trait ctru::services::gfx::Flush

source ·
pub trait Flush: Sealed {
    // Required method
    fn flush_buffers(&mut self);
}
Expand description

A screen with buffers that can be flushed.

This trait applies to any Screen that has data written to its frame buffer.

Required Methods§

source

fn flush_buffers(&mut self)

Flushes the video buffer(s) for this screen.

Note that you must still call Swap::swap_buffers after this method for the buffer contents to be displayed.

Implementors§

source§

impl Flush for Console<'_>

source§

impl Flush for TopScreen3D<'_>

source§

impl<S: Screen> Flush for S