// I take the small square tile i want out of the tile_sheet and blit it onto temp_tile
apply_surface( 0, 0, tile_sheet, temp_tile, &clip);
// I save the SDL_Surface as tile.bmp
SDL_SaveBMP(temp_tile, "Graphics\\tile.bmp");
// Lastly I load the bmp into a different SDL_Surface called tile
tile = load_image("Graphics\\tile.bmp");
Like I said the above works but is so darn slow. Ideally what I'd like to do is set the clipped part of tilesheet into a seperate SDL_Surface and have it save like...
// I take the small square tile i want out of the tile_sheet and blit it onto temp_tile apply_surface( 0, 0, tile_sheet, temp_tile, &clip); tile = temp_tile;
Also the apply_surface function is from http://lazyfoo.net/S...son06/index.php






