Use the framebuffer API to implement displays (LCD, OLED, e-paper, etc.). The display size is defined in the .chip.json
file. The framebuffer uses 32 bits per pixel. The pixels are stored in the RGBA format. The total size of the buffer is pixel_width * pixel_height * 4
bytes.
Returns the framebuffer for the current chip, and the pixel dimensions (width/height) of the frame buffer.
warning
Note: framebuffer_init
can only be called from chip_init()
. Do not call it at a later time.
Copies data_len
bytes from data
into the frame buffer, at the given offset
.
Copies data_len
bytes at the given offset
of the frame buffer into data
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4