SFML community forums
Help => General => Topic started by: Regen 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?
-
Because there's no width in sf::Shape. You'll have to store it yourself.