1

I have a pair of screen coordinates and I need to know if they overlap any GUI elements.

Is there some way of doing this or at least finding out if a given point is within the bounds of a GUI element?

It would be preferable if there was some sort of isPointInsideAnyGUIElements() function.

Nathan Osman
  • 71,149
  • 71
  • 256
  • 361

1 Answers1

1

Use env->getElementFromPoint(position)

Gareth Davidson
  • 4,857
  • 2
  • 26
  • 45
  • @George, asking questions here's not such a good idea. I recommend Irrlicht's Beginner's Help forum (we have a great community) or the chat room (#irrlicht on Freenode) – Gareth Davidson Nov 30 '10 at 14:14
  • Thanks. I've been to the Freenode channel a few times and got some good help there. The idea of posting them here is that others will find this question when searching for it if they run into the same problem. – Nathan Osman Dec 01 '10 at 00:27