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

Author Topic: clipping and blitting sprite sheets  (Read 3096 times)

0 Members and 1 Guest are viewing this topic.

WSPSNIPER

  • Newbie
  • *
  • Posts: 28
    • View Profile
clipping and blitting sprite sheets
« on: January 02, 2010, 01:10:36 am »
like in sdl or allegro when you can choose a portion of the sprite sheet and draw it to the screen, if there is a way to do this already correct me

Cierpliwy

  • Newbie
  • *
  • Posts: 23
    • View Profile
clipping and blitting sprite sheets
« Reply #1 on: January 02, 2010, 01:26:23 am »
Is it so hard to read documentation? Use function sf::Sprite::SetSubRect (const IntRect & SubRect) to do what you want.

 

anything