Original Post
What I would like to know is what is the difference of this? and this The top one works but what I want is to have all video related functions in my video class but if I do it the bottom way I get a error saying video.handleResize(int w,int h) missing arguments or something like that. Whats different other than it being in another class?
Main.cpp
void handleResize(int w, int h)
{
}
//......
//Main
glutReshapeFunc(handleResize);
Video.cpp
void handleResize(int w, int h)
{
}
Main.cpp
//....
//Main
glutReshapeFunc(video.handleResize);