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, 10, 1, 0); surface = rot; SDL_FreeSurface(rot);
Later I blit the surface as usual. Note that without the code above the surface blits perfectly.
Edited 4 Years Ago by nuclear