/********************************************************** * init() * * This function initializes the global variable settings. ***********************************************************/ void init() { int i; struct Mover *pntr; struct Light *lptr; for (i=0; i<3; i++) lightcount[i] = 0; settings.cutframe.frame =0; settings.zoom = 30; settings.camera.x = 60; settings.camera.y = 0 ; settings.camera.z = 0; settings.slate.x = 0; settings.slate.y = 0; settings.slate.z = 0; settings.moving = CAMERA; settings.scale = 1.0; settings.mode = CAMERA; settings.zoom = 30; settings.light_type = DIFFUSE; lptr = malloc(sizeof(struct Light)); lptr->next = NULL; settings.light_head = lptr; settings.light_ptr = lptr; strcpy(settings.message1,">"); strcpy(settings.message2,">"); strcpy(settings.message3,">"); lightelement.lx = 0; lightelement.ly = 0; lightelement.lz = 0; lightelement.lfx = 0; lightelement.lfy = 0; lightelement.lfz = 0; barpos=0.5; cut = FALSE; spline = FALSE; sspline = FALSE; move = FALSE; smove = FALSE; zoom = FALSE; set_bars(); show_views(); num_objects = 0; }
static void change_bars( GtkToggleButton * button, CPUGraph * base ) { set_bars( base, gtk_toggle_button_get_active( button ) ); }
// Update GUI static void update_gui() { set_bars(level / (STATUS_MAX / 10)); }