gluUnProject

NAME

gluUnProject -- map window coordinates to object coordinates

C SPECIFICATION

int gluUnProject(GLdouble winx,
                 GLdouble winy,
                 GLdouble winz,
                 const GLdouble modelMatrix[16],
                 const GLdouble projMatrix[16],
                 const GLint viewport[4],
                 GLdouble *objx,
                 GLdouble *objy,
                 GLdouble *objz)

PARAMETERS

winx, winy, winz
Specify the window coordinates to be mapped.

modelMatrix
Specifies the modelview matrix (as from a glGetDoublev call)

projMatrix
Specifies the projection matrix (as from a glGetDoublev call)

viewport
Specifies the viewport (as from a glGetIntegerv call)

objx, objy, objz
Returns the computed object coordinates.

DESCRIPTION

gluUnProject maps the specified window coordinates into object coordinates using modelMatrix, projMatrix, and viewport. The result is stored in objx, objy, and objz. A return value of GL_TRUE indicates success, and GL_FALSE indicates failure.

SEE ALSO

glGet, gluProject


back to the OpenGL index page


© 1995 Uwe Behrens All rights reserved