test graphics (omg that's awesome)
This commit is contained in:
parent
51d3c8e6f2
commit
65c31c3899
5 changed files with 390 additions and 32 deletions
14
docs/gfx.md
14
docs/gfx.md
|
|
@ -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
4
docs/os.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# OS
|
||||
|
||||
## `float osGet3DSliderState(void);`
|
||||
Get the slider level from 0.0 (no 3D) to 1.0 (full 3D).
|
||||
Loading…
Add table
Add a link
Reference in a new issue