glutTimerFunc issues
问题 I am using a timer function to animate, but I am having issues when I place it in the Renderer class. void Renderer::animate(int value) { glutTimerFunc(TIMERMSECS, animate, 0); } Error: \renderer.cpp(242) : error C3867: 'Renderer::animate': function call missing argument list; use '&Renderer::animate' to create a pointer to member 回答1: The issue is that Renderer::animate is a class member function and so has a hidden this parameter. glutTimerFunc doesn't know what value of this to pass, so if