我把修改glulookat方法的语句放在了键盘监听处理函数中 但是点击键盘 没有反应 求大神帮助~

解决方案 »

  1.   

    注意看参数gluLookAt
                  (
                    eyeX
                  , 
                    eyeY
                  , 
                    eyeZ
                  , 
                    centerX
                  , 
                    centerY
                  , 
                    centerZ
                  , 
                    upX
                  , 
                    upY
                  , 
                    upZ
                  ) → 
                    None
                  Parameters
                    eyeX, eyeY, eyeZ
                  
    Specifies the position of the eye point.

                    centerX, centerY, centerZ
                  
    Specifies the position of the reference point.

                    upX, upY, upZ
                  
    Specifies the direction of the up vector.