Maps object coordinates to window coordinates.
OpenGL C bindings library: libGL.a
int gluProject(GLdouble ObjectX, GLdouble ObjectY, GLdouble ObjectZ, const GLdouble ModelMatrix[16}, const GLdouble ProjectMatrix[16], const GLint Viewport[4], GLdouble *WindowX, GLdouble *WindowY, GLdouble *WindowZ)
The gluProject transforms the specified object space coordinates into window coordinates using the ModelMatrix, ProjectMatrix, and Viewport values provided. The results are stored in WindowX, WindowY, and WindowZ. A return value of GL_TRUE indicates success, and GL_FALSE indicates failure.
GL_TRUE | Indicates the conversion succeeded. |
GL_FALSE | Indicates the conversion failed. |
/usr/include/GL/gl.h | Contains C language constraints, variable type definitions, and ANSI function prototypes for OpenGL. |
The glGet subroutine, gluUnProject subroutine.