Changes

Jump to navigation Jump to search
adding pixel formats
== Useful Information ==
Note that while pixel depths are referred to by RGBA below, the actual bit order is BGRA (or BGR for formats without alpha).
 
Color format is adjustable, but display resolution is fixed when using the PSP display.
 
=== Pixel Formats ===
* <code>PSP_DISPLAY_PIXEL_FORMAT_8888</code> - 32-bit RGBA 8:8:8:8 - Full 24-bit color with 8-bit alpha, uses double the VRAM
* <code>PSP_DISPLAY_PIXEL_FORMAT_4444</code> - 16-bit RGBA 4:4:4:4 - 12-bit colors, plus 4-bit alpha
* <code>PSP_DISPLAY_PIXEL_FORMAT_5551</code> - 16-bit RGBA 5:5:5:1 - 5 bits per color channel, plus boolean alpha (1-bit)
* <code>PSP_DISPLAY_PIXEL_FORMAT_565</code> - 16-bit RGBA 5:6:5 - Slightly wider color gamut by bumping green bits to 6, with red and blue using 5 bits
 
=== Drawing Pixels ===
If you're just pushing raw pixels to the screen, there are two ways to do it. There's direct access to the framebuffer:

Navigation menu