View Full Version : Draw a point with a mouse click

Dr. Lecter
11-15-2000, 12:28 PM
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, 01:15 PM
Never mind, I figured it out. I found the answer on page 286 of the OpenGL redbook(newest edition).