Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The gluProject function maps object coordinates to window coordinates.
Syntax
int WINAPI gluProject(
GLdouble objx,
GLdouble objy,
GLdouble objz,
const GLdouble modelMatrix[16],
const GLdouble projMatrix[16],
const GLint viewport[4],
GLdouble *winx,
GLdouble *winy,
GLdouble *winz
);
Parameters
-
objx
-
The x object coordinate.
-
objy
-
The y object coordinate.
-
objz
-
The z object coordinate.
-
modelMatrix
-
The current modelview matrix (as from a glGetDoublev call).
-
projMatrix
-
The current projection matrix (as from a glGetDoublev call).
-
viewport
-
The current viewport (as from a glGetIntegerv call).
-
winx
-
The computed x window coordinate.
-
winy
-
The computed y window coordinate.
-
winz
-
The computed z window coordinate.
Return value
If the function succeeds, the return value is GL_TRUE.
If the function fails, the return value is GL_FALSE.
Remarks
The gluProject function transforms the specified object coordinates into window coordinates using modelMatrix, projMatrix, and viewport. The result is stored in winx, winy, and winz.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
Library |
|
DLL |
|