i tried to write a program in opengl in the
C++ style.
what happend is that while creating a class i could only include the initialization function as the member of the class but not any other function. if i included drawing or the reshape function as the member then
i have to access them in the following way
glutReshapeFunc(obj.reshape);
which is not allowed.
what to do?