Export (0) Print
Expand All

gluUnProject function

Applies to: desktop apps only

The gluUnProject function maps window coordinates to object coordinates.

Syntax

int WINAPI gluUnProject(
  GLdouble winx,
  GLdouble winy,
  GLdouble winz,
  const GLdouble modelMatrix[16],
  const GLdouble projMatrix[16],
  const GLint viewport[4],
  GLdouble *objx,
  GLdouble *objy,
  GLdouble *objz
);

Parameters

winx

The x window coordinate to be mapped.

winy

The y window coordinate to be mapped.

winz

The z window coordinate to be mapped.

modelMatrix

The modelview matrix (as from a glGetDoublev call).

projMatrix

The projection matrix (as from a glGetDoublev call).

viewport

The viewport (as from a glGetIntegerv call).

objx

The computed x object coordinate.

objy

The computed y object coordinate.

objz

The computed z object 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 gluUnProject function maps the specified window coordinates into object coordinates using modelMatrix, projMatrix, and viewport. The result is stored in objx, objy, and objz.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Glu.h

Library

Glu32.lib

DLL

Glu32.dll

See also

glGet
glGetDoublev
glGetIntegerv
gluProject

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft