src/gui_actions.cpp

changeset 253
0737c217a54d
parent 252
3f9067022d74
child 254
434c9844e45d
equal deleted inserted replaced
252:3f9067022d74 253:0737c217a54d
448 g_win->R ()->depthValue (), -10000.0f, 10000.0f, 3, &ok); 448 g_win->R ()->depthValue (), -10000.0f, 10000.0f, 3, &ok);
449 449
450 if (ok) 450 if (ok)
451 g_win->R ()->setDepthValue (depth); 451 g_win->R ()->setDepthValue (depth);
452 } 452 }
453
454 MAKE_ACTION (testpic, "Test picture", "", "", (0)) {
455 LDOpenFile* file = loadFile ("axle.dat");
456
457 if (!file) {
458 critical ("couldn't load axle.dat");
459 return;
460 }
461
462 GLRenderer* rend = new GLRenderer;
463 rend->setFile (file);
464 rend->setDrawOnly (true);
465 rend->show ();
466 }

mercurial