MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / init

Function init

server/vglconfig.cpp:329–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327
328
329void init(int argc, char **argv)
330{
331 char temps[20];
332
333 win = new Fl_Double_Window(485, 340, "VirtualGL Configuration");
334
335 if(strlen(fconfig.transport) > 0)
336 {
337 compChoice = new Fl_Choice(211, 10, 225, 25, "Image Compression: ");
338 compChoice->menu(pluginCompMenu);
339 }
340 else
341 {
342 compChoice = new Fl_Choice(227, 10, 225, 25,
343 "Image Compression (Transport): ");
344 compChoice->menu(compMenu);
345 }
346 setComp();
347
348 sampChoice = new Fl_Choice(210, 45, 100, 25, "Chrominance Subsampling: ");
349 sampChoice->menu(sampMenu);
350 setSamp();
351
352 if(strlen(fconfig.transport) > 0)
353 {
354 qualSlider = new Fl_Value_Slider(30, 80, 335, 25, "Image Quality");
355 }
356 else
357 {
358 qualSlider = new Fl_Value_Slider(30, 80, 335, 25, "JPEG Image Quality");
359 }
360 qualSlider->callback(qualCB, 0);
361 qualSlider->type(1);
362 qualSlider->minimum(1);
363 qualSlider->maximum(100);
364 qualSlider->step(1);
365 qualSlider->slider_size(0.01);
366 setQual();
367
368 profChoice = new Fl_Choice(157, 130, 280, 24, "Connection Profile: ");
369 profChoice->menu(profMenu);
370 profChoice->mode(3, FL_MENU_INACTIVE);
371 setProf();
372
373 gammaInput = new Fl_Float_Input(315, 165, 85, 25,
374 "Gamma Correction Factor (1.0=no correction): ");
375 gammaInput->callback(gammaCB, 0);
376 snprintf(temps, 19, "%.2f", fconfig.gamma);
377 gammaInput->value(temps);
378
379 spoilButton = new Fl_Light_Button(10, 200, 345, 25,
380 "Frame Spoiling (Do Not Use When Benchmarking)");
381 spoilButton->callback(spoilCB, 0);
382 spoilButton->value(fconfig.spoil);
383
384 ifButton = new Fl_Light_Button(10, 235, 185, 25, "Inter-Frame Comparison");
385 ifButton->callback(ifCB, 0);
386 setIF();

Callers 1

mainFunction · 0.70

Calls 15

setCompFunction · 0.85
setSampFunction · 0.85
setQualFunction · 0.85
setProfFunction · 0.85
setIFFunction · 0.85
setStereoFunction · 0.85
setFPSFunction · 0.85
callbackMethod · 0.80
typeMethod · 0.80
stepMethod · 0.80
slider_sizeMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected