Beispiel #1
0
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);
    }
}
Beispiel #2
0
void StApplication::doDrawProxy(unsigned int theView) {
    stglDraw(!myWindow.isNull() && myWindow->isStereoOutput() ? theView : ST_DRAW_MONO);
}