void StOutPageFlipExt::beforeClose() { if(!StOutPageFlip::params.ToShowExtra->getValue()) { return; } if(isControlOn() && StWindow::isStereoOutput()) { myIsQuiting = true; const double aTime = getDeviceControl()->quitMS(); StTimer aQuitTimer(true); while(aQuitTimer.getElapsedTimeInMilliSec() <= aTime) { stglDraw(); StThread::sleep(10); } dxRelease(); StWindow::setStereoOutput(false); } }
void StApplication::doDrawProxy(unsigned int theView) { stglDraw(!myWindow.isNull() && myWindow->isStereoOutput() ? theView : ST_DRAW_MONO); }