Use SDL_Color for SDL_RenderGeometryRaw() and add SDL_RenderGeometryRawFloat()

Eventually we can re-add a fast path for that data down to the individual renderers. Setting color scale would still require converting to float, and most hardware accelerated renderers prefer to consume colors as float, so this requires some thought and performance testing.

Fixes https://github.com/libsdl-org/SDL/issues/9009
This commit is contained in:
Sam Lantinga 2024-02-06 17:23:07 -08:00
parent 9e194c1a1d
commit 3158342441
7 changed files with 77 additions and 6 deletions

View file

@ -994,3 +994,4 @@
#define SDL_CopyProperties SDL_CopyProperties_REAL
#define SDL_SetRenderColorScale SDL_SetRenderColorScale_REAL
#define SDL_GetRenderColorScale SDL_GetRenderColorScale_REAL
#define SDL_RenderGeometryRawFloat SDL_RenderGeometryRawFloat_REAL