Wiki-compatible documentation for SDL_ALPHA_OPAQUE and SDL_ALPHA_TRANSPARENT

This commit is contained in:
Sam Lantinga
2024-07-06 05:53:40 -07:00
parent e52603ac8f
commit 0fa74d8aa8

View File

@@ -39,14 +39,22 @@ extern "C" {
#endif
/**
* \name Transparency definitions
* A fully opaque 8-bit alpha value.
*
* These define alpha as the opacity of a surface.
* \since This macro is available since SDL 3.0.0.
*
* \sa SDL_ALPHA_TRANSPARENT
*/
/* @{ */
#define SDL_ALPHA_OPAQUE 255
/**
* A fully transparent 8-bit alpha value.
*
* \since This macro is available since SDL 3.0.0.
*
* \sa SDL_ALPHA_OPAQUE
*/
#define SDL_ALPHA_TRANSPARENT 0
/* @} */
/** Pixel type. */
typedef enum SDL_PixelType