OpenGL getting projection matrix

前端 未结 1 1310
孤独总比滥情好
孤独总比滥情好 2021-01-16 09:16

I am trying to use gluUnProject in OpenGL, first I need to get the projectoin, model_view, and viewort matrices. According to examples that I have found online I used

相关标签:
1条回答
  • 2021-01-16 09:35

    Maybe:

    projection = glGetFloatv(GL_PROJECTION_MATRIX)
    # and so on ...
    

    after that in projection variable should be PROJECTION matrix

    0 讨论(0)
提交回复
热议问题