static void stereoswap_cb(Fl_Widget *w, void *v) { Fl_Menu_ *m = (Fl_Menu_ *)w; VMDApp *app = (VMDApp *)v; if (!strcmp("On", m->text())) { app->display_set_stereo_swap(1); } else { app->display_set_stereo_swap(0); } }
static void backgroundmode_cb(Fl_Widget *w, void *v) { Fl_Menu_ *m = (Fl_Menu_ *)w; VMDApp *app = (VMDApp *)(w->user_data()); if (!strcmp("Gradient", m->text())) { app->display_set_background_mode(1); } else { app->display_set_background_mode(0); } }
static void proj_cb(Fl_Widget *w, void *) { Fl_Menu_ *m = (Fl_Menu_ *)w; VMDApp *app = (VMDApp *)(w->user_data()); app->display_set_projection(m->text()); }
static void rendermode_cb(Fl_Widget *w, void *v) { Fl_Menu_ *m = (Fl_Menu_ *)w; VMDApp *app = (VMDApp *)v; app->display_set_rendermode(m->text()); }
static void stereo_cb(Fl_Widget *w, void *v) { Fl_Menu_ *m = (Fl_Menu_ *)w; VMDApp *app = (VMDApp *)v; app->display_set_stereo(m->text()); }
static void axes_cb(Fl_Widget *w, void *v) { Fl_Menu_ *m = (Fl_Menu_ *)w; VMDApp *app = (VMDApp *)v; app->axes_set_location(m->text()); }