[SDL] SDL_color assignment

Solra Bizna sbizna at tejat.net
Fri Dec 21 12:25:42 PST 2007


I forget if this was a GNU C extension or a recent change to the
standard, but in either GNU C or GNU C++ it should work if you do:

#define WHITE (SDL_Color){255,255,255}
#define BLUE (SDL_Color){0,0,255}

-:sigma.SB


More information about the SDL mailing list