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

Author Topic: [Solved] Draw only a part of the sprite  (Read 3098 times)

0 Members and 1 Guest are viewing this topic.

dabo

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://www.dabostudios.net
[Solved] Draw only a part of the sprite
« on: June 17, 2008, 08:31:24 pm »
Is it possible to draw only a part of the sprite, for example the bottom half?

If not, will it be in the future?

quasius

  • Full Member
  • ***
  • Posts: 166
    • View Profile
[Solved] Draw only a part of the sprite
« Reply #1 on: June 17, 2008, 10:01:17 pm »
void sf::Sprite::SetSubRect(const IntRect& SubRect);

dabo

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://www.dabostudios.net
[Solved] Draw only a part of the sprite
« Reply #2 on: June 18, 2008, 12:04:02 am »
Ok thanks, I'm gonna try it out.