Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GLUT 是否提供了一些用户可访问的机制来检查是否调用了 glutInit?我正在调试现有应用程序中的一些问题,这将是一个非常有用的调试工具!
您可以glutGet与GLUT_INIT_STATE参数一起使用:
glutGet
GLUT_INIT_STATE
bool glutInitialised = glutGet(GLUT_INIT_STATE) == 1;