[英]How to get the display function in GLUT?
Is there a GLUT function I can call to get a pointer to the current displayFunc? 我可以调用一个GLUT函数来获取指向当前displayFunc的指针吗?
EX: EX:
glutDisplayFunc(0xABC);
glutGetDisplayFunc(); // returns 0xABC
No. There is no such function to get the current callback functions such as display functions, as you can see in glut Api documentaion . 不。没有这样的函数可以获取当前的回调函数(例如显示函数),如在glut Api documentaion中所见。 The glut get functions are meant for state retrieval.
glut get函数用于状态检索。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.