I\'ve created a C++ class (myPixmap) to encapsulate the work performed by the OpenGL GLUT toolkit. The display() member function of the class cont
myPixmap
display()
I had trouble in understanding the correct answer from Merlyn, so here it is the simplified version:
In myPixmap.h, change display function to static member function. Should work.
class myPixmap { //... static void display(); //... };