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()
Merlyn solution didnt work for me, so I made a little modification by bringing currentInstance outside of class and it worked:
Class myPixmap; static myPixmap* currentInstance; Class myPixmap { ... }