You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use SDL_GetRendererInfo() to find out what the native texture format is for the used driver, then convert the RGB555 values to whatever format is detected.
Using a texture format that is native to the system should improve performance on systems that do not natively support RGB555.
The text was updated successfully, but these errors were encountered:
This will require logic to convert palette colours to selected texture format. Not difficult, but may be time consuming depending on how many texture formats we want to support (only the most popular ones since SDL2 can just convert the format itself as a fallback).
The renderer should use an 8-bit surface that Peanut-GB will fill with pixels. By using SDL_SetPaletteColours, the colour of the pixels can be changed. SDL2 will convert the 8-bit surface to whichever format the hardware is using.
Use
SDL_GetRendererInfo()
to find out what the native texture format is for the used driver, then convert the RGB555 values to whatever format is detected.Using a texture format that is native to the system should improve performance on systems that do not natively support RGB555.
The text was updated successfully, but these errors were encountered: