Export (0) Print
Expand All

gluProject function

Applies to: desktop apps only

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

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Glu.h

Library

Glu32.lib

DLL

Glu32.dll

See also

glGetDoublev
glGetIntegerv
gluUnProject

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft