SFML community forums

General => Feature requests => Topic started by: heishe on July 18, 2008, 06:53:24 pm

Title: sf::Drawable::GetPosition
Post by: heishe on July 18, 2008, 06:53:24 pm
Is this not possible because of the class hierarchy? Sounds weird to me because drawable has "SetPosition" but no "GetPosition" method.

Would it be possible to add taht in future versions? I'm currently writing a 2D Game Framework using sfml and clipping doesn't work at the moment because i can't get the position of my sf::Drawables inside my SceneManager class :)

greetings,
travis

btw: great library. way better than SDL or anything else i've seen so far.
Title: sf::Drawable::GetPosition
Post by: Wizzard on July 18, 2008, 10:55:16 pm
There is a sf::Drawable::GetPosition method. :shock:
Title: sf::Drawable::GetPosition
Post by: heishe on July 18, 2008, 11:49:54 pm
Quote from: "Wizzard"
There is a sf::Drawable::GetPosition method. :shock:


that's weird... maybe a vc issue... (i use the 2005 edition which is vc8 i think)... gonna look into this a little more and check back here.
Title: sf::Drawable::GetPosition
Post by: Laurent on July 19, 2008, 07:12:12 am
Quote
that's weird... maybe a vc issue...

Well, the function is defined in the headers and compiled in the libraries for sure, so why do you say it's not there ? Any compiler / linker error ?
Title: sf::Drawable::GetPosition
Post by: Nexus on July 22, 2008, 12:06:34 am
Did you watch the intellisense list? Or doesn't the code work if you use a GetPosition() method?

In VC++, the intellisense database is sometimes upset. Rebuilding the project or whole solution and deleting the database file (*.ncb) will help.
Title: sf::Drawable::GetPosition
Post by: heishe on July 22, 2008, 11:09:33 pm
Quote from: "Nexus"
Did you watch the intellisense list? Or doesn't the code work if you use a GetPosition() method?

In VC++, the intellisense database is sometimes upset. Rebuilding the project or whole solution and deleting the database file (*.ncb) will help.


it was something completely different and i dont want to go into it because i dont want to embarass myself :D