00001 #ifndef COMMONGUIFUNCS_H 00002 #define COMMONGUIFUNCS_H 00003 00004 // about creating players 00005 class charCreator; 00006 extern charCreator* playerGen; 00007 void remove_char_creator (puObject* o); 00008 void make_char_creator(puObject* o); 00009 00010 // generic hide for a widget. remove by other means! 00011 inline void kill_widget_func(puObject* e) { e->hide(); } 00012 00013 // recursively hide && delete total_menu 00014 void _clear_total_menu (); 00015 00016 // setup display & input funcs for pui 00017 void _register_glutfuncs_menuonly(); 00018 void _register_glutfuncs_game(); 00019 00020 // the menu callbacks 00021 void reshape ( int w, int h ); 00022 void mmotionfn ( int x, int y ); 00023 void mmousefn ( int button, int updown, int x, int y ); 00024 void mdisplayfn (); 00025 void mkeyfn ( unsigned char key, int, int ); 00026 00027 // make sure all *init() stuff is called and glut funcs 00028 // registered before calling this... 00029 void _make_main_menu (puObject* o); 00030 00031 #endif