push_context

Function push_context 

Source
pub fn push_context(target: &impl AnyBitmap)
Expand description

Push a new drawing context for drawing into the given bitmap.

If target is BitmapRef::null(), the drawing functions will use the display framebuffer.

To push framebuffer to context use push_framebuffer_to_context.

This function is shorthand for Graphics::push_context, using default ZST end-point.

Equivalent to sys::ffi::playdate_graphics::pushContext.