[SDL] SDL_color assignment
James Barrett
xucaen at gmail.com
Fri Dec 21 13:34:54 PST 2007
Thanks everyone for the replies. I ended up creating static const
SDL_Color objects, one for each color I want to use.
On Dec 21, 2007 3:25 PM, Solra Bizna <sbizna at tejat.net> wrote:
> 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