- winX
- window coordinates X
- winY
- window coordinates Y
- winZ
- window coordinates Z
- model
- the current modelview matrix
- modelOffset
- the offset into the model array where the modelview maxtrix data starts.
- project
- the current projection matrix
- projectOffset
- the offset into the project array where the project matrix data starts.
- view
- the current view, {x, y, width, height}
- viewOffset
- the offset into the view array where the view vector data starts.
- obj
- the output vector {objX, objY, objZ}, that returns the computed object coordinates.
- objOffset
- the offset into the obj array where the obj vector data starts.
Documentation for this section has not yet been entered.
Map window coordinates to object coordinates. gluUnProject maps the specified window coordinates into object coordinates using model, proj, and view. The result is stored in obj.
Note that you can use the OES_matrix_get extension, if present, to get the current modelView and projection matrices.