SDL_Color

Name

SDL_Color -- Format independent color description

Structure Definition

typedef struct{
  Uint8 r;
  Uint8 g;
  Uint8 b;
  Uint8 unused;
} SDL_Color;

Structure Data

rRed intensity
gGreen intensity
bBlue intensity
unusedUnused

Description

SDL_Color describes a color in a format independent way. You can convert a SDL_Color to a pixel value for a certain pixel format using SDL_MapRGB.

See Also

SDL_PixelFormat, SDL_SetColors, SDL_Palette