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

Author Topic: drawing a sprite to an image  (Read 2185 times)

0 Members and 1 Guest are viewing this topic.

WSPSNIPER

  • Newbie
  • *
  • Posts: 28
    • View Profile
drawing a sprite to an image
« on: January 02, 2010, 06:05:06 pm »
i want to draw a sprite on to an image so i can draw a bunch of sprites then display the image

i tried sprite.draw( image )

here i was drawing to an image i created, im doing this because im putting tiles on the entire map with 2 for loops and every frame it needs to redraw the tiles so i wanted to put them to an image ( maby another sprite ) and draw the image every loop hopfully speeding it up a little

i was looking at the doc and could not find anything so if anyone could give me a tip it would be cool

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
drawing a sprite to an image
« Reply #1 on: January 02, 2010, 06:19:00 pm »
It's possible with the RenderImage class, available in SFML 2.

 

anything