examples now using SDL_ALPHA_OPAQUE(_FLOAT) for opaque alpha value

This commit is contained in:
Michael Palomas
2024-10-23 13:44:28 +02:00
committed by Sam Lantinga
parent 63ef5a2369
commit 21c91d5535
19 changed files with 38 additions and 38 deletions

View File

@@ -83,7 +83,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
}
/* as you can see from this, rendering draws over whatever was drawn before it. */
SDL_SetRenderDrawColor(renderer, 66, 66, 66, 255); /* grey, full alpha */
SDL_SetRenderDrawColor(renderer, 66, 66, 66, SDL_ALPHA_OPAQUE); /* grey, full alpha */
SDL_RenderClear(renderer); /* start with a blank canvas. */
/* Just draw the static texture a few times. You can think of it like a