Skip to content

Commit

Permalink
Wiki-compatible documentation for SDL_ALPHA_OPAQUE and SDL_ALPHA_TRAN…
Browse files Browse the repository at this point in the history
…SPARENT
  • Loading branch information
slouken committed Jul 6, 2024
1 parent e52603a commit 0fa74d8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions include/SDL3/SDL_pixels.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fa74d8

Please sign in to comment.