GLU.GluUnProject Method

Definition

Map window coordinates to object coordinates.

[Android.Runtime.Register("gluUnProject", "(FFF[FI[FI[II[FI)I", "")]
public static int GluUnProject (float winX, float winY, float winZ, float[]? model, int modelOffset, float[]? project, int projectOffset, int[]? view, int viewOffset, float[]? obj, int objOffset);
[<Android.Runtime.Register("gluUnProject", "(FFF[FI[FI[II[FI)I", "")>]
static member GluUnProject : single * single * single * single[] * int * single[] * int * int[] * int * single[] * int -> int

Parameters

winX
Single

window coordinates X

winY
Single

window coordinates Y

winZ
Single

window coordinates Z

model
Single[]

the current modelview matrix

modelOffset
Int32

the offset into the model array where the modelview maxtrix data starts.

project
Single[]

the current projection matrix

projectOffset
Int32

the offset into the project array where the project matrix data starts.

view
Int32[]

the current view, {x, y, width, height}

viewOffset
Int32

the offset into the view array where the view vector data starts.

obj
Single[]

the output vector {objX, objY, objZ, objW}, that returns the computed homogeneous object coordinates.

objOffset
Int32

the offset into the obj array where the obj vector data starts.

Returns

A return value of GL10.GL_TRUE indicates success, a return value of GL10.GL_FALSE indicates failure.

Attributes

Remarks

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.

Java documentation for android.opengl.GLU.gluUnProject(float, float, float, float[], int, float[], int, int[], int, float[], int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to