词条 | gluUnProject |
释义 | 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. |
随便看 |
|
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。