Hi all,

I would like to draw a line on a GL screen by clicking on the starting point and the ending point within a specified region.

Being rather new to openGL, i'm a bit confused as to what functions (or events) to use and what the general algorithm of doing this would be. This the general question...

I have a clue that i would need some form of mouse event/function that returns to me the screen coordinates. Does such a function exist? If it doesn't is there a way of achieving this without too much effort?

Thanks in advance...