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 #ifdef NO_OVERPAINTING |
|
455 #define CAMERA_ACTION(NAME,LOWERNAME) \ |
|
456 MAKE_ACTION (camera##NAME, #NAME " Camera", "camera-" #LOWERNAME, "Change to the " #LOWERNAME " camera", (0)) { \ |
|
457 g_win->R ()->setCamera (GL::NAME); \ |
|
458 } |
|
459 |
|
460 CAMERA_ACTION (Top, top) |
|
461 CAMERA_ACTION (Bottom, bottom) |
|
462 CAMERA_ACTION (Left, left) |
|
463 CAMERA_ACTION (Right, right) |
|
464 CAMERA_ACTION (Front, front) |
|
465 CAMERA_ACTION (Back, back) |
|
466 CAMERA_ACTION (Free, free) |
|
467 |
|
468 #endif // NO_OVERPAINTING |