GLU.GluProject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Map object coordinates into window coordinates.
[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);
[<Android.Runtime.Register("gluProject", "(FFF[FI[FI[II[FI)I", "")>]
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
A return value of GL_TRUE indicates success, a return value of GL_FALSE indicates failure.
- Attributes
Remarks
Map object coordinates into window coordinates. gluProject transforms the specified object coordinates into window coordinates using model, proj, and view. The result is stored in win.
Note that you can use the OES_matrix_get extension, if present, to get the current modelView and projection matrices.
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.