【问题标题】:call display() instead of glutPostRedisplay() in reshape?在 reshape 中调用 display() 而不是 glutPostRedisplay()?
【发布时间】:2011-10-05 01:11:34
【问题描述】:

reshape()函数中,我可以简单地调用回调函数display()而不是glutPostRedisplay()吗?

【问题讨论】:

    标签: glut freeglut


    【解决方案1】:

    可以,但这不是一个好主意。让消息处理程序完成它的工作。

    如果您需要对消息处理和呈现进行更多控制,则应使用 GLFW。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-07
      • 1970-01-01
      • 2020-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-10
      相关资源
      最近更新 更多