[Tux4kids-tuxtype-dev] [Tuxmath-devel] libt4k_common update

David Bruce davidstuartbruce at gmail.com
Fri Jun 25 11:09:28 UTC 2010


Hi,


>
> What I've been doing so far is using the preprocessor
> to redirect the calls instead of manually adding T4K all over the
> place. Here's an example from SDL_extras.h in TuxMath's
> commonification branch
>
> #ifndef HAVE_LIBT4K_COMMON
> void            DrawButton(SDL_Rect* target_rect, int radius, Uint8 r,
> Uint8 g, Uint8 b, Uint8 a);
> #else
> # define DrawButton T4K_DrawButton
> #endif
>

This is temporary, I take it?  I would assume that once we take the
plunge and commit ourselves to consistently using libt4k, we will go
back and change the function calls themselves.

David



More information about the Tux4kids-tuxtype-dev mailing list