View Full Version : Point shifting

Dmitry Samoyloff
12-28-2000, 11:53 AM

I writing my own modeler for OpenGL and I have a little problem.

I want to find the dependence between cursor shift on the screen and point
shift in the world (1:1). I using glOrtho(). So I need some function that
takes width & height of the viewport, x, y and z scale values (for glScale()) and
shift on the screen and returns the shift in the world.

Can somebody help me with this?

Regards, Dmitry Samoyloff