Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Bindings - other languages
»
Python
(Moderator:
Sonkun
) »
sprite.setTextureRect(sf::IntRect(0,0,64,64)) in PySFML
Print
Pages: [
1
]
Author
Topic: sprite.setTextureRect(sf::IntRect(0,0,64,64)) in PySFML (Read 9879 times)
0 Members and 1 Guest are viewing this topic.
m_p_w
Newbie
Posts: 5
sprite.setTextureRect(sf::IntRect(0,0,64,64)) in PySFML
«
on:
September 10, 2016, 05:35:33 am »
Guys, I wasn't able to find this in PySFML documentation.
What is PySFML version of sprite.setTextureRect(sf::IntRect(0,0,64,64))
Logged
G.
Hero Member
Posts: 1593
Re: sprite.setTextureRect(sf::IntRect(0,0,64,64)) in PySFML
«
Reply #1 on:
September 10, 2016, 03:55:36 pm »
I've never used PySFML but I'm pretty sure you can easily find the equivalent code in the
usage example
.
(click to show/hide)
sprite.
texture_rectangle
=
sf.
Rectangle
(
(
10
,
10
)
,
(
50
,
30
)
)
Logged
Print
Pages: [
1
]
SFML community forums
»
Bindings - other languages
»
Python
(Moderator:
Sonkun
) »
sprite.setTextureRect(sf::IntRect(0,0,64,64)) in PySFML
anything