Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
[Solved] Draw only a part of the sprite
Print
Pages: [
1
]
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
[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?
Logged
quasius
Full Member
Posts: 166
[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);
Logged
dabo
Sr. Member
Posts: 260
[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.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
[Solved] Draw only a part of the sprite