GLU.GluProject(Single, Single, Single, Single[], Int32, Single[], Int32, Int32[], Int32, Single[], Int32) Method

Definition

Map object coordinates into window coordinates. gluProject transforms the specified object coordinates into window coordinates using model, proj, and view.

[Android.Runtime.Register("gluProject", "(FFF[FI[FI[II[FI)I", "")]
public static int GluProject (float objX, float objY, float objZ, float[] model, int modelOffset, float[] project, int projectOffset, int[] view, int viewOffset, float[] win, int winOffset);
static member GluProject : single * single * single * single[] * int * single[] * int * int[] * int * single[] * int -> int

Parameters

objX
Single

object coordinates X

objY
Single

object coordinates Y

objZ
Single

object 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.

win
Single[]

the output vector {winX, winY, winZ}, that returns the computed window coordinates.

winOffset
Int32

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

Returns

Int32
Attributes

Remarks

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