View Full Version : myDisplay() problems..

01-14-2002, 12:19 AM
i am trying to find a way to access member variables in myDisplay so i can update the rotation and translation of my object without making myDisplay a member function, if i make it a member function i cannot call it in the callback functions - glutDisplayFunc(myDisplay);

where am i going wrong???

01-14-2002, 04:12 AM
One solution would be to create a global pointer to your object, and then use the global pointer to access it from inside myDisplay().