3ds_tests/docs/gfx.md
2024-09-25 00:39:51 +02:00

26 lines
No EOL
586 B
Markdown

# 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.