SFML community forums

Help => Graphics => Topic started by: sungchoiok on March 20, 2012, 12:15:24 am

Title: Draw() to another Image, not the Window
Post by: sungchoiok on March 20, 2012, 12:15:24 am
The tutorials cover how to put up sprites onto the window, but they never seem to tell me how to draw one to another image.

Upon searching, I found the Image::Copy function, but the description says that it's very slow and should only be used during initialization.

How would I do that?---draw a sprite onto an image, and not the window?


I'm using SFML version 1.6.

thanks
Title: Draw() to another Image, not the Window
Post by: Laurent on March 20, 2012, 07:54:06 am
It's possible in SFML 2, with the RenderTexture class.