Use floating point values for viewport, clip rectangle, and texture sizes

These are integer values internally, but the API has been changed to make it easier to mix other render code with querying those values.

Fixes https://github.com/libsdl-org/SDL/issues/7519
This commit is contained in:
Sam Lantinga
2024-06-12 09:21:02 -07:00
parent 463984ec20
commit 9fb5a9ccac
29 changed files with 624 additions and 585 deletions

View File

@@ -121,11 +121,11 @@ static void loop(void)
SDL_RenderClear(renderer);
{
SDL_Rect viewport;
SDL_FRect viewport;
SDL_Vertex verts[3];
float a;
float d;
int cx, cy;
float cx, cy;
/* Query the sizes */
SDL_GetRenderViewport(renderer, &viewport);