So I was trying out SDL_gfx lib and tryed using the rotozoomSurface() Click Here which should've rotated my surface at runtime, but it seems that whenever I do that my surface turns invisible. It doesn't matter if I predefine the rotation or use it at runtime, the same happens, I've tryed using the other rotation functions, still the same. Any info on this?
SDL_Surface* rot = rotozoomSurface(surface[0], 10, 1, 0);
surface[0] = rot;
SDL_FreeSurface(rot);
Later I blit the surface[0] as usual. Note that without the code above the surface blits perfectly.