pub unsafe extern "C" fn gspPresentBuffer(
screen: c_uint,
swap: c_uint,
fb_a: *const c_void,
fb_b: *const c_void,
stride: u32_,
mode: u32_,
) -> boolExpand description
Presents a buffer to the specified screen.
§Arguments
screen- Screen ID (see GSP_SCREEN_TOP and GSP_SCREEN_BOTTOM)swap- Specifies which set of framebuffer registers to configure and activate (0 or 1)fb_a- Pointer to the framebuffer (in stereo mode: left eye)fb_b- Pointer to the secondary framebuffer (only used in stereo mode for the right eye, otherwise pass the same as fb_a)stride- Stride in bytes between scanlinesmode- Mode configuration to be written to LCD register
§Returns
true if a buffer had already been presented to the screen but not processed yet by GSP, false otherwise.
Note: The most recently presented buffer is processed and configured during the specified screen’s next VBlank event.