Duplicating a surface [SDL]
Is it possible to duplicate the screen surface with SDL?
Is it possible to duplicate the screen surface with SDL?
What about with SFML too? (uni? ;-))
Again, in SFML it is really beautifully simple.
sf::Image copyOfImage = origImage;
This calls the copy constructor and you end up with a duplicate of the pixel data :) Note: I haven't actually tried it, but this is what i read. I have never had the need to duplicate an image
In SDL… hmm… let me think… You could try converting the surface (to the same format). That should give you a copy.
cool! Now I know if I ever need it. (I really need to get started on that chat program…:/)
Thanks, SDL_ConvertSurface worked. :)