test graphics (omg that's awesome)

This commit is contained in:
Zy 2024-10-04 18:00:49 +02:00
parent 51d3c8e6f2
commit 65c31c3899
5 changed files with 390 additions and 32 deletions

View file

@ -31,6 +31,20 @@ Enable or disable 3D on the top screen.
## `bool gfxIs3D(void);`
Check whether the 3D is enabled on the top screen.
## `u8* gfxGetFramebuffer(gfxScreen_t screen, gfx3dSide_t side, u16* width, u16* height);`
Get all the data which will be display to be able to modify it.
If `gspInit()` was used, the return data is formatted as follow:
- Each byte is a color value.
- The colors are in order: blue, green, red. 3 bytes make a pixel.
- The pixels are from the bottom to the top of the screen. 'width' pixels make a pixel column.
- 'height' colums make the screen.
The size of the returned value is: 3 (colors) * width (rows) * height (colums).
Arguments:
- screen: screen to get the frame buffer from (either GFX_TOP or GFX_BOTTOM).
- side: for the 3D screen GFX_LEFT for the left eye image, GFX_RIGHT for the right. If bottom screen or if not 3D, use GFX_LEFT.
- width: height of the screen (yep)
- height: width of the screen (yep yep yep doesn't make any sense)
# TO SEE:
## `bool gspPresentBuffer(???);`

4
docs/os.md Normal file
View file

@ -0,0 +1,4 @@
# OS
## `float osGet3DSliderState(void);`
Get the slider level from 0.0 (no 3D) to 1.0 (full 3D).