#include #include "vgl.h" using namespace std; bool UI_Verbose_G = false; void SpecialKeypress(int key, int x, int y) { switch (key) { default: cout << "Unknown Key " << endl; } return; } void KeyUp(unsigned char key, int x, int y) { return; } void SpecialUp(int key, int x, int y) { return; } void KeyHelp() { cout << endl; cout << "Keys " << endl; cout << "\tq,Q\tQuit" << endl; cout << "\th,?\tHelp" << endl; cout << "\tr,R\tRedisplay" << endl; cout << endl; return; } void Keypress(unsigned char key, int x, int y) { static int state = 1; bool redisplay = false; switch (key) { case 'h': case '?': KeyHelp(); break; case 'Q': case 'q': exit(0); case 'r': case 'R': redisplay = true; break; default: cerr << "Unhandled keypress for key '" << key << "'" << endl; } if (redisplay) { glutPostRedisplay(); } return; }