Struct ctru::services::gfx::RawFrameBuffer
source · pub struct RawFrameBuffer<'screen> {
pub ptr: *mut u8,
pub width: usize,
pub height: usize,
/* private fields */
}
Expand description
Representation of a framebuffer for one Side
of the top screen, or the entire bottom screen.
The inner pointer is only valid for one frame if double
buffering is enabled. Data written to ptr
will be rendered to the screen.
Fields§
§ptr: *mut u8
Pointer to graphics data to be rendered.
width: usize
The width of the framebuffer in pixels.
height: usize
The height of the framebuffer in pixels.