/*================================================================= Event Tester Writes to console when events are generated. Built to compare the event generation by glut and freeglut 8 March 2012 H Masterman ===================================================================*/ #include //you can build this with either glut or freeglut //the event behavior is quite different #include //so you can output to the console using namespace std; //required by iostream void myReshape(GLsizei w, GLsizei h) { cout << "reshape event" << endl; // so we will know we are in the reshape callback } void mouse_callback(int btn, int state, int x, int y) { if(btn==GLUT_LEFT_BUTTON && state==GLUT_DOWN) //this is only for left down button events cout<<"left mouse down event"<