Function ctru_sys::gfxGetFramebuffer
source · pub unsafe extern "C" fn gfxGetFramebuffer(
screen: gfxScreen_t,
side: gfx3dSide_t,
width: *mut u16_,
height: *mut u16_
) -> *mut u8_
Expand description
Retrieves the framebuffer of the specified screen to which graphics should be rendered.
§Arguments
screen
- Screen ID (see gfxScreen_t)side
- Framebuffer side (see gfx3dSide_t) (pass GFX_LEFT if not using stereoscopic 3D)width
- Pointer that will hold the width of the framebuffer in pixels.height
- Pointer that will hold the height of the framebuffer in pixels.
§Returns
A pointer to the current framebuffer of the chosen screen.
Please remember that the returned pointer will change every frame if double buffering is enabled.