zoukankan      html  css  js  c++  java
  • OpenGL2D_2_3D

    OpenGL

    gluUnProject

    The gluUnProject function maps window coordinates to object coordinates. 

    int 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, winy, winz
    The window coordinates 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, objy, objz
    The computed object coordinates.

    Return Values

    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

      Windows NT/2000: Requires Windows NT 3.5 or later.   Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.   Header: Declared in Glu.h.   Library: Use Glu32.lib.

    See Also

    glGet, glGetDoublev, glGetIntegerv, gluProject

  • 相关阅读:
    0302 随想
    1231递归下降语法分析程序设计
    《构建之法》1、2、3章读后感
    复利计算总结
    操作系统实验0
    学习进度条
    0302思考并回答一些问题
    评论
    c语言文法
    词法分析
  • 原文地址:https://www.cnblogs.com/jizhen521/p/3046853.html
Copyright © 2011-2022 走看看