2021-03-06 19:11:23 -05:00
|
|
|
# Gamecube GX-based RGB Framebuffer Example
|
|
|
|
|
|
|
|
Just a simple example of using a GX ARGB-format texture as a means to render a "software" pixel framebuffer
|
2021-03-06 20:06:30 -05:00
|
|
|
quickly. Most applications won't care about such a thing (if your application can utilize the hardware's support for
|
|
|
|
drawing graphics, you definitely should use it instead!), but this can be nice if you want low-level per-pixel access
|
2021-03-06 19:11:23 -05:00
|
|
|
in your code (e.g. MS-DOS Mode 13h style).
|
|
|
|
|
2021-03-06 20:06:30 -05:00
|
|
|
If you want to access pixels using RGB, this is significantly better than using the XFB buffer, where the pixel
|
|
|
|
data uses YUV color space and each 4-byte YUV value represents two pixels ... ugh.
|
2021-03-06 19:11:23 -05:00
|
|
|
|
2021-03-06 20:06:30 -05:00
|
|
|
Probably there could be a number of improvements made to this. I'm not well versed in the GX API.
|