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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - g@rion

Pages: [1]
1
Graphics / How to center sf::Text (SFML2)
« on: January 31, 2012, 09:18:21 am »
This works. Thank you.
But could anyone also explain me why this :
Code: [Select]
sf::Text Text;
sf::FloatRect rect = Text.GetRect();

doesn't work please ?

2
Graphics / How to center sf::Text (SFML2)
« on: January 31, 2012, 12:07:35 am »
Hello,
I'm trying to do quite the same thing. But when I try that :
Code: [Select]
sf::Text Text;
sf::FloatRect rect = Text.GetRect();


MinGW says that :
class sf::Text' has no member named 'GetRect'

It seems to me that I wrote exactly the same line as you did.
So what's the problem ?

Pages: [1]
anything