3ds_tests/docs/gfx.md
2024-09-26 00:59:50 +02:00

827 B

gfx.h

Screen buffers for graphice.

void gfxInitDefault(void);

Initialize LCD framebuffers with default parameters: gfxInit(GSP_BGR8_OES,GSP_BGR8_OES,false); Internally calls gspInit().

void gfxExit(void);

Destroy everything gfx-related.

void gfxFlushBuffers(void);

Draw the buffer.

void gfxSwapBuffers(void);

??? idk call it after gfxFlushBuffer().

enum gfxScreen_t;

Represents each screen.

  • GFX_TOP: Top screen.
  • GFX_BOTTOM: Bottom screen.

enum gfx3dSide_t;

Represent each image for the 3D screen. GFX_LEFT: Left eye. GFX_RIGHT: Right eye.

void gfxSet3D(bool enable);

Enable or disable 3D on the top screen.

bool gfxIs3D(void);

Check whether the 3D is enabled on the top screen.

TO SEE:

bool gspPresentBuffer(???);

"Presents a buffer to the specified screen."