Hello,
I would like to get the position of the mouse when
I click on a GtkGlArea.
The problem is that when I use the common way
(creating a callback function on the "button press event"), I can only get the
position of the mouse relatively to the WINDOW. But these coordonnates
don't correspond to the position of the mouse in the reference of the GlArea
creation object (that ones depend of the view of the scene) ... I'm
not sure to be very comprehensible ... it's not easy to explain without an
image.
If you understand and if you have an answer to this
question ...
Thanks,
Fabrice.
|