Browse Source

Wiki-compatible documentation for SDL_ALPHA_OPAQUE and SDL_ALPHA_TRANSPARENT

Sam Lantinga 9 months ago
parent
commit
0fa74d8aa8
1 changed files with 12 additions and 4 deletions
  1. 12 4
      include/SDL3/SDL_pixels.h

+ 12 - 4
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