View Full Version : Draw a point with a mouse click

Dr. Lecter
11-15-2000, 11:28 AM
Using GLUT, I want to be able to draw a point with a left-click of the mouse, but I'm not sure how to do it. The x and y coordinates in glutMouseFunc are window coordinates, not vertex coordinates, so how do I translate them so that a point will be drawn exactly where I click the mouse?

Dr. Lecter
11-15-2000, 12:15 PM
Never mind, I figured it out. I found the answer on page 286 of the OpenGL redbook(newest edition).