gluUnProject.3gl




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




Introduction | Alphabetic | Specification

Last Edited: Mon, May 22, 1995

AFV