I would like to overload the GUIElement::Draw() member function in order to produce a special effect based on the mouse X.Y position. The cursor may be everywhere, not only over my custom GUI element.
I looked into the Irrlicht source code, and I haven't found a way to retreive the cursor position from draw(). Device* is not accessible using defaut irrlicht GUIElement::members.
Have I missed something obvious ?
Well, I would like to avoid passing the Irrlicht Device pointer to my custom GUI Element constructor, unless there is no other way !
Thanks,
X.