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