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

Author Topic: sf::Drawable::GetPosition  (Read 25257 times)

0 Members and 1 Guest are viewing this topic.

heishe

  • Full Member
  • ***
  • Posts: 121
    • View Profile
sf::Drawable::GetPosition
« 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.

Wizzard

  • Full Member
  • ***
  • Posts: 213
    • View Profile
sf::Drawable::GetPosition
« Reply #1 on: July 18, 2008, 10:55:16 pm »
There is a sf::Drawable::GetPosition method. :shock:

heishe

  • Full Member
  • ***
  • Posts: 121
    • View Profile
sf::Drawable::GetPosition
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::Drawable::GetPosition
« Reply #3 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 ?
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
sf::Drawable::GetPosition
« Reply #4 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

heishe

  • Full Member
  • ***
  • Posts: 121
    • View Profile
sf::Drawable::GetPosition
« Reply #5 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

 

anything