Heres some objects I have setup in SDL:
Heres an example of passing these into a function:Code:SDL_Surface* screen; SDL_Surface* tiles; SDL_Rect src, dest;
I want to write a function that accepts these arguments, but I'm not sure how to write it.Code:SDL_BlitSurface(tiles , &src , screen , &dest);
As you can see I don't know what to put for the parameters 'src' and 'dest':
Could someone quickly tell me how I should do this? Thanks.Code:DoSomething(SDL_Surface *tiles, src, SDL_Surface *screen, dest)



LinkBack URL
About LinkBacks


