From 0fa74d8aa8a35950a8d3a611e71968d61bcfd150 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 6 Jul 2024 05:53:40 -0700 Subject: [PATCH] Wiki-compatible documentation for SDL_ALPHA_OPAQUE and SDL_ALPHA_TRANSPARENT --- include/SDL3/SDL_pixels.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/include/SDL3/SDL_pixels.h b/include/SDL3/SDL_pixels.h index db0e2db36b..ec758d8d82 100644 --- a/include/SDL3/SDL_pixels.h +++ b/include/SDL3/SDL_pixels.h @@ -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