Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Draw() to another Image, not the Window  (Read 890 times)

0 Members and 1 Guest are viewing this topic.

sungchoiok

  • Newbie
  • *
  • Posts: 2
    • View Profile
Draw() to another Image, not the Window
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Draw() to another Image, not the Window
« Reply #1 on: March 20, 2012, 07:54:06 am »
It's possible in SFML 2, with the RenderTexture class.
Laurent Gomila - SFML developer