Salbris

07-06-2009, 04:09 PM

Hey, I'm been slowly building my first OpenGL application with minor problems here and there but finally I ran into something which I need to ask for help about.

When I get the screen coordinates from the mouse functions how would I go about mapping them to a coordinate on a plane parallel to the screen.

The reason is so I can make simple buttons just by mapping screen coordinates to the 2-d plane where my buttons are then check to see if the coordinate is within the button's area.

- Thanks in Advance.

When I get the screen coordinates from the mouse functions how would I go about mapping them to a coordinate on a plane parallel to the screen.

The reason is so I can make simple buttons just by mapping screen coordinates to the 2-d plane where my buttons are then check to see if the coordinate is within the button's area.

- Thanks in Advance.