I know that if I wan to use print something in openGL, I would used this
But now the problem is in my code, if I wan to display something in the screen, I use this.Code:glutDisplayFunc(renderScene);
It would not work because I am using pointer. I received this error.Code:if (myKeys['o'] == true)
{
glutDisplayFunc(renderScene);
}
error C3867: 'myApplication::renderScene': function call missing argument list; use '&myApplication::renderScene' to create a pointer to member
So I edit and change to this.
It work but the problem is I need to include the glutDisplayFunc too. How should I do this to code that include the glutDisplayFunc in my application class with the function render scene.Code:if (myKeys['o'] == true)
{
myApplication::renderScene();
}