gluUnProject4

map window and clip coordinates to object coordinates

Signature

gluUnProject4( GLdouble ( winX ) , GLdouble ( winY ) , GLdouble ( winZ ) , GLdouble ( clipW ) , const GLdouble * ( model ) , const GLdouble * ( proj ) , const GLint * ( view ) , GLdouble ( nearVal ) , GLdouble ( farVal ) , GLdouble* ( objX ) , GLdouble* ( objY ) , GLdouble* ( objZ ) , GLdouble* ( objW ) )-> GLint
gluUnProject( winX , winY , winZ , model , proj , view , objX , objY , objZ ) -> <class 'ctypes.c_int'>
Convenience wrapper for gluUnProject
    
    Automatically fills in the model, projection and viewing matrices
    if not provided.
    
    returns (objX,objY,objZ) doubles
    
gluUnProject4( winX , winY , winZ , clipW , model , proj , view , nearVal , farVal , objX , objY , objZ , objW ) -> <class 'ctypes.c_int'>
Convenience wrapper for gluUnProject
    
    Automatically fills in the model, projection and viewing matrices
    if not provided.
    
    returns (objX,objY,objZ) doubles
    

Parameters

VariablesDescription
winX, winY, winZ
Specify the window coordinates to be mapped.
clipW
Specify the clip w coordinate to be mapped.
model
Specifies the modelview matrix (as from a glGetDoublev call).
proj
Specifies the projection matrix (as from a glGetDoublev call).
view
Specifies the viewport (as from a glGetIntegerv call).
nearVal, farVal
Specifies the near and far planes (as from a glGetDoublev call).
objX, objY, objZ, objW
Returns the computed object coordinates.