PDA

View Full Version : MOUSE



mapers
12-02-2010, 08:00 PM
good gentlemen need your help, I am studying the opengl but I ran with the uncertainty of the function of the mouse to click on the screen but I coordinate these coordinates are giving me the window is not my coordenada.como could trannsformar coordinates of my mouse to the coordinate axis

Kal Mar
12-03-2010, 08:13 AM
Hi, mappers,
when you running your program, it is in windows coordinate, for transforming to object coordinate you can use gluUnProject function with respective parameters.