pub struct AsyncDisplay<'a> { /* private fields */ }Expand description
Async wrapper for agb display operations
Implementations§
Source§impl<'a> AsyncDisplay<'a>
impl<'a> AsyncDisplay<'a>
Sourcepub async fn wait_for_vblank(&self)
pub async fn wait_for_vblank(&self)
Wait for the next VBlank (~16.7ms at 60Hz)
Sourcepub async fn frame(&mut self) -> GraphicsFrame<'_>
pub async fn frame(&mut self) -> GraphicsFrame<'_>
Get a frame for rendering, waiting for VBlank if needed
Sourcepub fn frame_no_wait(&mut self) -> GraphicsFrame<'_>
pub fn frame_no_wait(&mut self) -> GraphicsFrame<'_>
Get a frame for rendering without waiting for VBlank Use this when you’ve already called wait_for_vblank() separately