Programming/OpenGL

gluUnProject function

유기농코더 2011. 1. 27. 21:33
GLint gluUnProject(GLdouble     winX,
				   GLdouble     winY,
				   GLdouble     winZ,
				   const GLdouble * model,
				   const GLdouble * proj,
				   GLdouble *  objX,
				   GLdouble *  objY,
				   GLdouble *  objZ);
  • winX, winY, winZ
    Specify the window coordinates to be mapped

  • model
    Specify the modelview matrix(as from a glGetDoublev call)

  • proj
    Specify the projection matrix(as from a glGetDoublev call)

  • objX, objY, objZ
    Returns the computed object coordinates.