Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
width of rectangle
Print
Pages: [
1
]
Author
Topic: width of rectangle (Read 2020 times)
0 Members and 1 Guest are viewing this topic.
Regen
Newbie
Posts: 42
width of rectangle
«
on:
May 24, 2009, 11:02:36 pm »
Hi, I have a rectangleshape and now i want to get the width and height of it.
i have a function called:
bool ClickedShape(sf::Shape shape, sf::RenderWindow *App, bool click)
but it doesnt seems like I can access getwidth() of my "shape", why?
Logged
Why can't things just work?
Laurent
Administrator
Hero Member
Posts: 32498
width of rectangle
«
Reply #1 on:
May 24, 2009, 11:37:43 pm »
Because there's no width in sf::Shape. You'll have to store it yourself.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
width of rectangle