Original Post
Hello guys!
I am trying to make a Window class for glut or glfw .
I want it such that I just need to create the object of my window class all the stuff will done itself.
I am also successful in that but problem comes with callback functions.
If I set a member function of the class as callback function then I get error. But if I use any other function outside the class then it does not give any error.
Help me out guys. I want to make framework for very easy game development.
I am trying to make a Window class for glut or glfw .
I want it such that I just need to create the object of my window class all the stuff will done itself.
I am also successful in that but problem comes with callback functions.
If I set a member function of the class as callback function then I get error. But if I use any other function outside the class then it does not give any error.
Help me out guys. I want to make framework for very easy game development.