Re: [fltk.opengl] event_x() To Get FL_Gl_Window Coordinates

2013-04-05 Thread Albrecht Schlosser
On 03.04.2013 22:54, Mike Werner wrote: I want to be able to left click in an OpenGL window and have the mouse coordinates in that window returned (i.e. relative to the upper left corner of the window). Seems like I should be able to do this using Fl::event_x. However it's turning out to

[fltk.opengl] event_x() To Get FL_Gl_Window Coordinates

2013-04-03 Thread Mike Werner
I want to be able to left click in an OpenGL window and have the mouse coordinates in that window returned (i.e. relative to the upper left corner of the window). Seems like I should be able to do this using Fl::event_x. However it's turning out to be difficult. First of all the only way I can

Re: [fltk.opengl] event_x() To Get FL_Gl_Window Coordinates

2013-04-03 Thread Mike Werner
The only idea I have now is to put a large button underneath the OGL window. When I click inside the OGL window, this button will be activated and I'll get an x cord. relative to the main FLTK window and have to subtract off the upper left corner coordinates of the OGL window. Actually,