Digital Equipment Corporation OpenGL man pages



  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 )


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

  modelMatrix	  Specifies the	modelview matrix (as from a glGetDoublev

  projMatrix	  Specifies the	projection matrix (as from a glGetDoublev

  viewport	  Specifies the	viewport (as from a glGetIntegerv call).

  objx,	objy, objz
		  Returns the computed object coordinates.


  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: Fri Dec 6 11:18:03 EST 1996 by AFV
Look here for legal stuff: Legal