Added SDL_ALPHA_OPAQUE_FLOAT and SDL_ALPHA_TRANSPARENT_FLOAT

Fixes https://github.com/libsdl-org/SDL/issues/10684
This commit is contained in:
Sam Lantinga 2024-09-02 17:00:39 -07:00
parent 18c46a3313
commit 46ffa82f4e
1 changed files with 18 additions and 0 deletions

View File

@ -47,6 +47,15 @@ extern "C" {
*/
#define SDL_ALPHA_OPAQUE 255
/**
* A fully opaque floating point alpha value.
*
* \since This macro is available since SDL 3.0.0.
*
* \sa SDL_ALPHA_TRANSPARENT_FLOAT
*/
#define SDL_ALPHA_OPAQUE_FLOAT 1.0f
/**
* A fully transparent 8-bit alpha value.
*
@ -56,6 +65,15 @@ extern "C" {
*/
#define SDL_ALPHA_TRANSPARENT 0
/**
* A fully transparent floating point alpha value.
*
* \since This macro is available since SDL 3.0.0.
*
* \sa SDL_ALPHA_OPAQUE_FLOAT
*/
#define SDL_ALPHA_TRANSPARENT_FLOAT 0.0f
/** Pixel type. */
typedef enum SDL_PixelType
{