Heres some objects I have setup in SDL:
Heres an example of passing these into a function:
SDL_Rect src, dest;
I want to write a function that accepts these arguments, but I'm not sure how to write it.
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.
DoSomething(SDL_Surface *tiles, src, SDL_Surface *screen, dest)