I want to take all my SDL_Surface values and put them into one value with an index for every SDL_Surface I have, so that I can put them through a for loop.
This might be impossible, but I'm not too experienced with C++.
If it matters, what I'm trying to do is put all my SDL_Surface values through:
So if I'm correct in what I want to do, it'd look like this:Code:
SDL_FreeSurface( Surface );
//Put all my Surfaces into tSurface[iTotalSurfaces]
//TotalSurfaces will, obviously, be an integer representing the total number of surfaces I have
for( int i=0, i<iTotalSurfaces,i++ )
SDL_FreeSurface( tSurface[i] );