mirror of
https://github.com/encounter/SDL.git
synced 2025-05-23 07:41:21 +00:00
Document the packed integer formats SDL_Color is bit-compatible with.
This commit is contained in:
parent
3a5e148b13
commit
7f5339e6c4
@ -301,6 +301,11 @@ typedef enum
|
|||||||
SDL_DEFINE_PIXELFOURCC('O', 'E', 'S', ' ')
|
SDL_DEFINE_PIXELFOURCC('O', 'E', 'S', ' ')
|
||||||
} SDL_PixelFormatEnum;
|
} SDL_PixelFormatEnum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The bits of this structure can be directly reinterpreted as an integer-packed
|
||||||
|
* color which uses the SDL_PIXELFORMAT_RGBA32 format (SDL_PIXELFORMAT_ABGR8888
|
||||||
|
* on little-endian systems and SDL_PIXELFORMAT_RGBA8888 on big-endian systems).
|
||||||
|
*/
|
||||||
typedef struct SDL_Color
|
typedef struct SDL_Color
|
||||||
{
|
{
|
||||||
Uint8 r;
|
Uint8 r;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user